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

  • @arendjr
    link
    61 month ago

    As a junior with no clue how to write production code, is Clean Code going to provide with a decent framework I can quickly learn to start learning my craft, should I throw it out completely because parts are bad, or should I read both Clean Code and all its criticism before I write a single line?

    I see what you’re getting at it, and I agree we shouldn’t increase the load for juniors upfront. But I think the point is mainly there are better resources for juniors to start with than Clean Code. So yeah, the best option is to throw it out completely and let juniors start elsewhere instead, otherwise they are starting with many bad parts they don’t yet realize are bad. That too would increase cognitive load because they would need to unlearn those lessons again.

    • JackbyDevOP
      link
      English
      21 month ago

      Exactly. The article is pretty clear with this point. Junior devs aren’t the ones we should be giving mixed bags of advice to.

      • @thesmokingman
        link
        -11 month ago

        I’m all for it! What’s the resource that solves this problem?

        It must be perfect since we can’t ever give mixed bags of advice. There are apparently better resources although I didn’t see one in the article and things like Code Complete and Pragmatic Programmer address a lot of the same things. Hell, we probably shouldn’t talk about The Mythical Man-Month anymore either. Do we also throw out Design Patterns since singletons are arguably bad design these days?

        • JackbyDevOP
          link
          English
          11 month ago

          Literally no need for that level of sarcasm.

          • @thesmokingman
            link
            -1
            edit-2
            1 month ago

            I took the things defined in the comments responding to mine and extended them. If we can’t share a mixed bag, all of the things I highlighted are out. It would be logically inconsistent to think otherwise starting from your conclusions. Either we have perfect resources or we have, as I called out, to pick and choose our battles. I want to see a perfect resource not ad hominem.

            Edit: genuinely surprised to see someone on a CS instance not understand reductio ad absurdum/impossibile (depending on how you feel about Gang of Four)

            • JackbyDevOP
              link
              English
              -21 month ago

              Telling you that you don’t need to be sarcastic is not ad hominem.

              • @thesmokingman
                link
                -61 month ago

                Your response was to call my argument sarcasm. That is directed at me rather than what I said. That’s quite literally, not figuratively, the definition of sarcasm.

                I wish you the best of luck. You don’t seem to be interested in the comments unless it agrees with you and you have yet to share a perfect resource. Have fun!

                • JackbyDevOP
                  link
                  English
                  71 month ago

                  You’re not owed a response. This is an internet forum, not a debate. If I don’t want to engage with someone who is being sarcastic and condescending that’s allowed. Especially so when your first reply to me was a straw man argument. I never claimed perfect advice exists. You’re acting as if I would look at something 99% good and say it’s a “mixed bag” of advice because it isn’t 100% good. I don’t know how to view that as something other than sarcasm. I don’t know how to take saying things like how you’re shocked people wouldn’t know this as something other than condescension. All you’ve done is act hostile towards me. And for what, because I mildly disagreed with something you said and refused to take the bait and get in a flame war? Literally even now you close this comment with sarcasm.

                  Life is too short for this shit. If you wanted a real discussion maybe say “I didn’t mean that sarcastically,” instead of being condescending.

        • @[email protected]
          link
          fedilink
          11 month ago

          It’s inspired so many crimes against engineering as a whole that it’s OK to discourage people from reading it. Not only is it pointless, but it’s also actively harmful to the industry as a whole.

          When something is mostly garbage and good advice is so sparse in it, there’s no need to hold onto it. It’s as much of a mixed bag as a turd with a nice ribbon is a mixed bag of prettiness.

          Burn it with napalm.

          … Nah, I don’t actually mean it should be burnt, that was a joke. The book is a nice reminder that, on top of being a bigot, Robert Martin (not my uncle) should not be hired to write any kind of code in any professional capacity.