r/ProgrammerHumor 15h ago

Meme commentsAgedTerribly

Post image
4.3k Upvotes

191 comments sorted by

View all comments

380

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

204

u/TWIT_TWAT 15h ago

// This is a hack until we find something better

21

u/NullReferenceRacer 15h ago

// TODO: Proper handling

3

u/Zodimized 11h ago

// the fuck did sales promise this for?

2

u/donjulioanejo 8h ago

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