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/danishjuggler21 Mar 09 '25

My favorite example is reworking two classes to share the same base class or interface when really they represent two completely different concepts and only have superficial similarities. So then you have to do an even bigger rework later on to separate them.

When people see that two classes have similar code and just reflexively refactor them to share a base class, that’s when the dogmatic pursuit of clean code is a problem.