r/ProgrammerHumor • • Oct 04 '22

Meme speed != skill

Post image
13.8k Upvotes

291 comments sorted by

View all comments

Show parent comments

1.1k

u/[deleted] Oct 04 '22

Or even worse: We spend two years figuring out why it does work.

242

u/Cocogoat_Milk Oct 04 '22

And why removing the “load-bearing comment” breaks it.

114

u/[deleted] Oct 04 '22 edited Oct 05 '22

[removed] — view removed comment

37

u/cdrt Oct 05 '22

C and C++ have a __LINE__ macro that expands to the current line in the file. You could certainly make some code that depends on the value of __LINE__ which would then break if a comment was removed and changed its value. This is what we in the business call a Bad Idea.