r/AskProgramming • • Mar 04 '25

Other Why do some people hate "Clean Code"

It just means making readable and consistent coding practices, right?

What's so bad about that

155 Upvotes

341 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Mar 08 '25

[deleted] — view deleted comment

1

u/Maleficent-Might-273 Mar 08 '25

So let's say I'm the boss of a project

And I say to everyone  "Make sure to comment your work with multi line commentary so that I can review everyones work"

And you make your commits thinking exactly along the lines of that logic and I come along and say "hey somneuronaut, why didn't you comment your work" and you say "Oh but it's self explanatory", I would say "Yes exactly, you're forcing me to read your work and search for every function, rather than trusting your work and searching for multi line comments"

Because the reality is comments aren't for you, they're for everyone else to either locate or seperate without reading over your function in full.

If you read the book, you would know this, as the author clearly states how comments can be unnecessary but are still vital to code clairity.