145

Seeing that Uncle Bob is making a new version of Clean Code I decided to try and find this article about the original.

you are viewing a single comment's thread
view the rest of the comments
[-] Feyd@programming.dev 32 points 3 months ago* (last edited 3 months ago)

I hate reading code like this. It means that there is a bunch of object or global state that could be getting modified by anything all over the place that I can't see just by looking at the method. In other words, if you say you understand this method, it is because you are making assumptions about other code that might be wrong.

I'll take a 30 line pure function over a web of methods changing member state every time.

this post was submitted on 10 Aug 2024
145 points (95.0% liked)

Programming

17314 readers
8 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 1 year ago
MODERATORS