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

2

u/Scientific_Artist444 Mar 05 '25 edited Mar 05 '25

This 100% is my experience. I am totally fine with long methods where all the related code lives if I can effortlessly search for relevant code. One way to annotate code this way is using unique comments for the different sections.

Otherwise, code will read like a stream of characters without any structure (a book without chapters or sections).

2

u/Guisseppi Mar 07 '25

This is a great point, colocation is often missed when breaking up big functions leading to higher cognitive load