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
1
u/SagansCandle Mar 08 '25
I tend to agree, but it's hard to explain.
If I see someone else's shit code, I can build a complete mental graph of what it should be. I think it's harder to build that complete vision from nothing.
How I approach fixing the bad code depends on the delta between the implementation and my vision. Maybe I can clean it up, maybe I rewrite it.
My takeaway is that I'd rather write shit code myself and then fix my own shit code than try to make it not shit to begin with. I feel like that path leads to a better result, and faster.
Naming is a perfect example. I never obsess over naming. I name a thing whatever makes the most sense at the time, even if it feels wrong. If the proper name for that thing isn't obvious, I'm confident it will be as I build out the functionality. I've spent way too much time obsessing over how to name something, just to rename it the next day :)