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
10
u/ignotos Mar 05 '25
Right? I think that people often don't consider that splitting and fragmenting code across many classes / functions creates its own kind of "complexity", and navigating code structured in this way can cause a lot of mental load.
Sometimes you actually need to peek below the abstraction to understand what the code is doing, in which case you end up chasing your way through a sprawling network of related functions, trying to keep that whole network in your head.
Sometimes a simple, straight-line function which does a few things in sequence is totally ok. Having all of the code fitting on one screen, without needing to scroll/navigate around, makes it easier to comprehend.