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

  • dandi8@fedia.io
    link
    fedilink
    arrow-up
    3
    arrow-down
    6
    ·
    5 months ago

    Clean code does not prevent writing bad code, it just makes it a bit easier to write good code.

    OF COURSE you can follow the principles and still write bad code, because so much more goes into it, including skill.

    A giant method with everything laid out, potentially mixing abstractions sounds like a nightmare to me. It leads to cognitive overload.

    • magic_lobster_party@kbin.run
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      5 months ago

      I heavily disagree it’s easier to write good code if you follow clean code. Especially if you follow his examples throughout the book. Most of his examples are just over engineered messes held together by side effects (even if he says side effects is a bad thing).

      If he can’t write good code by following clean code, why should you? He even picked the examples himself and failed!