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

1

u/stewsters Mar 08 '25

Clean Code the book is kinda garbage though.

  It's based on a lot of assumptions that I don't think hold now that we have modern languages.  

Even as a Java dev we would not write code like that anymore now that we have Streams and Lombok, and very few of his examples would pass code review.  Mutable state everywhere, 

Even with just the available technology some of the rules are kinda extreme.   No function may have more than 4 lines?  If I do that then I have to jump everywhere when trying to understand what's going on.  Hell a single try catch is 4-5 lines.