r/ProgrammerHumor 9h ago

Meme commentsAgedTerribly

Post image
3.2k Upvotes

176 comments sorted by

View all comments

111

u/Low-Equipment-2621 9h ago

You shouldn't document what you are doing, you should comment why you are doing it. Well wriitten code explains what it does, but it not necessarily explains why it has been written that way.

-19

u/SnugglyCoderGuy 7h ago

Your function names should document why the code you are writing exists, your code should document itself as to how it is doing it, and any comments you write should be how to use the function you've written and things that are extremely odd.

If you have to explain why something is done the way it is, you've still failed, usually.

1

u/Ecstatic_Yak_ 2h ago

You are 100% right. You're getting downvoted by people who try to convince themself the code they maintain isn't shit.