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

  • Kache@lemm.ee
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    edit-2
    3 months ago

    I really dislike code like that. Code like that tends to lie about what it says it does and have non-explicit interactions/dependencies.

    The only thing I can really be certain from that is:

      doAnything();
      if(doAnything2()) {
        doAnything3();
      }
    

    I.e. almost nothing at all because the abstractions aren’t useful.

        • Kogasa@programming.dev
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          3 months ago

          No, your argument is equally applicable to all methods. The idea that a method hides implementation details is not a real criticism, it’s just a basic fact.