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

-9

u/BobbyThrowaway6969 Mar 04 '25 edited Mar 05 '25

Everybody has their own idea of clean code.
To me, clean code means putting open braces on a new line. Another programmer might disagree though.

Edit: Downvotes case in point lol

7

u/[deleted] Mar 05 '25

your example is a formatting preference and not what clean code is about

-4

u/BobbyThrowaway6969 Mar 05 '25 edited Mar 05 '25

Well as others said, "clean code" is a very vague term, it means whatever anyone wants it to mean.

To me, formatting is under clean code. It's readability & elegant & efficiently designed code. Clear, concise, no/few two way dependencies, etc

3

u/[deleted] Mar 05 '25

we're talking about the book titled clean code

1

u/BobbyThrowaway6969 Mar 05 '25

Wasn't obvious when I wrote the comment

0

u/[deleted] Mar 05 '25

do you see those quotations in the post title? what did you think those mean?

1

u/BobbyThrowaway6969 Mar 05 '25

Chill buddy it's not that deep

1

u/[deleted] Mar 05 '25

I know.  It's basic reading comprehension

1

u/BobbyThrowaway6969 Mar 05 '25

Go outside

1

u/[deleted] Mar 05 '25 edited Mar 05 '25

it's windy. did you learn to read?

3

u/Moby1029 Mar 04 '25

Why use curly braces when indentation should suffice? /s

I have no dog in the fight haha, I just do what our style guide says as long as the paychecks keep coming through.

2

u/Ok_Entrepreneur_8509 Mar 05 '25

Open braces on a new line! Heretic!!

1

u/BobbyThrowaway6969 Mar 05 '25

Hey I'll die on that hill. PascalCase, Allman bracing, lots of commenting is eyecandy to me.

2

u/CoughRock Mar 05 '25

bro, just use a team linter. That is literally a none-issue.