-22
you are viewing a single comment's thread
view the rest of the comments
[-] MagicShel@lemmy.zip 9 points 1 day ago

I think this author has some points, but this is attacking the wrong thing.

Clean code is not the source of the problems described. If you see similar code and try to extract a common abstraction without further consideration, congrats, you're thinking like a junior developer, and that's not Clean Code's fault, to pull one example.

[-] Feyd@programming.dev 3 points 1 day ago

The problem is that people recommend clean code to junior developers all the time. Clean Code is full of terrible advice and heuristics over critical thinking throughout, and is usually foisted on burgeoning juniors when they don't know any better.

In other words, you're correct that adherents of clean code are thinking like junior developers, because that's what clean code tells you to do.

[-] MagicShel@lemmy.zip -1 points 1 day ago* (last edited 1 day ago)

That's not my observation. I could flip it around and accuse the author of defending massive if/else chains because my experience is that anything that needs more than a handful of lines of code is either a complex mapper or a nightmare of failed Boolean algebra.

That doesn't mean the bad code I've seen is OP's fault. It means there's a lot of shit programmers and adopting a particular style doesn't fix it.

[-] Feyd@programming.dev 5 points 1 day ago

Then you're just wrong. Clean Code directly tells you to make the mistakes the author of the article points out. The absurdity of the examples in the book should be evident enough.

this post was submitted on 05 Feb 2026
-22 points (21.1% liked)

Programming

25340 readers
239 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS