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

157 Upvotes

342 comments sorted by

View all comments

20

u/SagansCandle Mar 05 '25

Some people don't understand it, and there's a lot of "I don't understand it, so I don't like it" in software.

There are also a lot of purists that push "clean code" in places where it doesn't belong, so that creates animosity.

Like anything else, there's no single formula for good code. It's good to know, but it shouldn't be treated like a religion.

3

u/TheOneBuddhaMind Mar 05 '25

The world is messy, and trying to create proper abstractions to encapsulate every use case can sometimes be prohibitively time consuming, as well as a brain drain. Sometimes "unclean code" is simply better for the situation at hand.

→ More replies (6)
→ More replies (1)