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

  • Feyd@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    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.