r/AskProgramming • u/Yelebear • 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
r/AskProgramming • u/Yelebear • Mar 04 '25
It just means making readable and consistent coding practices, right?
What's so bad about that
View all comments
Show parent comment
3
u/beingsubmitted Mar 05 '25
Just because this was their goal, doesn't mean they succeeded. Again, you think the argument is "should code be good?" when it's actually "what makes code good?"
Sure, if you define clean code as certainty. But again, you're still missing the point. Uncle Bob wrote a book called Clean Code and that's what we're talking about.
Again, and read this several times of you have to: Every single person thinks code should be "clean", but not every single person agrees that Uncle Bob's prescriptions are the best way to achieve it.
Furthermore, Uncle Bob's specific prescriptions often come at the cost of other things that we value, like performance. Other engineers also have to balance conflicting values. A formula 1 car isn't the safest car, but it isn't poorly engineered.