Those who know, know.

  • EnderMB@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    3
    ·
    5 months ago

    Working in Ruby did 10x more to help me write clean code than reading Clean Code ever did.

    Many of the lessons drilled into me with Ruby (keep a consistent style, tests are cheap, keep your methods relatively small where possible, reduce nesting where possible) carry over nicely into other languages without needing to go through any OO bullshit.

    IMO, the best lesson around Clean Code is this: you’re not clever, write obvious code that works with as few tricks as possible.

    • Mia@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      5
      ·
      5 months ago

      I find this to be true for every new language I try out. Since every language has a different way of doing things and gives me a new perspective, in the long run they all end up improving my programming style as a whole. I always end up integrating the best parts of each into my next project when possible.

      Experience will always be more valuable than any set of rules these kind of books tout as “the way things are meant to be done”.