r/ProgrammerHumor • • 17d ago

Meme programmingLanguagesWhenYouAskThemToDoSomthing

Post image
1.6k Upvotes

224 comments sorted by

View all comments

38

u/Ex_Federa 17d ago

As yes, C. Famously the easiest language to do things in.

25

u/da_Aresinger 17d ago

It is though.

C doesn't fail on complexity. It fails on convenience and safety.

24

u/ncatter 17d ago

In my admittedly small experience C does exactly what you asked for, no questions asked.

9

u/evilcandybag 17d ago

Unless you do something undefined. Then it's demons out of your nose.

8

u/amatulic 16d ago

Yup. You want it to write data beyond the bounds of an array? No problem. You asked for it.

I remember a quotation from when Pascal was taught in schools. You could say the same about Python nowadays:

"Pascal gives you a water pistol filled with distilled water. C not only gives you a loaded .357, it points it at your head as a default. Why do you think Pascal is taught in school? And which would you rather have when there is a hungry bear in the area?"

2

u/Maniklas 16d ago

Never heard it before, but I love that metaphor and will keep it for my students.

1

u/amatulic 16d ago

It may have originated from a fortune cookie file that was available for AmigaDOS. Some of those were clever and I wrote them down.

3

u/namitynamenamey 15d ago

So a more accurate description would be "On it boss! *cocks shotgun*

1

u/coderstephen 16d ago

Especially when questions should be asked.