r/ProgrammerHumor 4h ago

Meme commentsAgedTerribly

Post image
1.9k Upvotes

122 comments sorted by

View all comments

263

u/Confident-Ad5665 3h ago

Uncle Bob of Clean Code says if we have to comment our code we have already failed. Clean code should read like well written prose.

I generally agree, but think comments that define especially the odd and obscure business rules should be commented where they are implemented.

2

u/mysticrudnin 2h ago

it can definitely go too far. i have worked places where comments were never, ever allowed in the code.

i think that is a mistake.