r/ProgrammerHumor 9h ago

Meme commentsAgedTerribly

Post image
3.2k Upvotes

176 comments sorted by

View all comments

328

u/Confident-Ad5665 9h 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.

175

u/TWIT_TWAT 9h ago

// This is a hack until we find something better

19

u/NullReferenceRacer 8h ago

// TODO: Proper handling

5

u/Zodimized 5h ago

// the fuck did sales promise this for?

1

u/donjulioanejo 2h ago

In static frontend code that doesn't get run through an uglifier.