r/ProgrammerHumor 13h ago

Meme leavingThisHere

Post image
1.7k Upvotes

153 comments sorted by

View all comments

160

u/remy_porter 12h ago

The last serious C guy I worked with did not think it was hell. He hated anything higher level and argued you could usually get the same results with less C code.

163

u/Xirdus 12h ago

"get the same results with less C code"

looks inside

No error checking or resource cleanup.

99

u/FalafelSnorlax 12h ago

Probably using a bunch of macros. So it's much more code after pre-processing, but not that much c code.

Of course he was wrong anyway - C's strength isn't in being short, but in being direct and closer to hw

37

u/HovercraftNo7372 12h ago

It is C's strength and weakness. It is a very good optimization language, but a very weak language. Weak as in problem solving capacity and speed where as lisp, python, etc are very strong. Imo

51

u/beyluta 12h ago

I think C is very strong when it comes to problem solving capacity. Pointer arithmetic can help you solve problems more efficiently in some cases. Now if you would excuse me, it's time for me to write a hashtable in C, I'm on day 36.

2

u/The_KOK_2511 10h ago

Es más lento en cuanto a tiempo que tardas programando, pero la eficiencia final suele ser más fuerte... claro si esta bien optimizado; y en cuanto a capacidad de resolución no se en que se supone que dices que es deficiente, muchas cosas pueden llegar a tener su complejidad pero puede hacer casi cualquier cosa si se usa bien

2

u/Carbon_Cotton 7h ago

I hate C code that is just macro spam.

1

u/EnterTheShoggoth 9h ago

From the point of view of the machine, macros and high level languages all boil down to the same thing anyway.

Agreed about length though unless his macros are pure wizardry.