• Shanmugha@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    3
    ·
    5 days ago

    Things are much simpler:

    1. Want a bug free code - do bug free code. Spend time carefully evaluating every line and interaction

    2. Want third-party code and safety - examine that code in the same way

    3. Whatever you do, assume there is a bug in any software you use, so plan and organize accordingly

    4. No amount of magic pills can substitute the above. So yeah, it is a skill issue. Also an issue of kids wining that there are bugs and they don’t feel safe, so they want to cling to magic pills instead of dealing with the reality

    • DeltaWingDragon@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      It’s not a “magic pill”, it’s another tool. We’re not saying that it will magically fix everything, it will just make certain types of errors less probable.

      If you want bug-free code, will you (A) use a tool that makes it easier, or (B) use the same tool as before?

      “Skill issue” is not an answer.

      • Shanmugha@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        3 hours ago

        Wrong reasoning, friend:

        Maybe C++ has rotted their brain to the point they can’t “get” the borrow checker.

        Yeah, sure. Borrow checker fixes all. This is exactly the idiot attitude I am addressing.

        And if I want a bug-free code, I will use same tool as ever: my brain

        • DeltaWingDragon@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          3 hours ago

          I am not the person who said “C++ has rotted their brain”. I have not expressed a similar sentiment. I have never said that “borrow checker fixes all”, in fact I said that it will not magically fix everything.

          And if I want a bug-free code, I will use same tool as ever: my brain

          Is your brain infallible?

          The strategy is not to 100% eliminate every bug in existence or theory, bugs are inevitable. The strategy is Swiss cheese security.

          Something is better than nothing. Therefore (brain + something) > (brain + nothing). As long as “something” works to prevent bugs, to any extent, it will result in fewer bugs.

          • Shanmugha@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 hours ago

            I am not the person who said “C++ has rotted their brain”

            Right. So what do you want with me?

            Is your brain infallible?

            No, but human brain is the only thing that can define bug

            As long as “something” works to prevent bugs, to any extent, it will result in fewer bugs.

            Any programming language does