• gnutrino@programming.dev
    link
    fedilink
    English
    arrow-up
    89
    ·
    edit-2
    7 months ago

    Did not know the thing about purposefully adding rogue tabs to kconfig files to catch poorly written parsers. That’s fucking hilarious and I’d love to have the kind of clout to get away with something like that rather than having to constantly work around other people’s mistakes.

    • Toribor@corndog.social
      link
      fedilink
      English
      arrow-up
      86
      ·
      7 months ago

      I write a lot of scripts that engineers need to run. I used to really try to make things ‘fail soft’ so that even if one piece failed the rest of the script would keep running and let you know which components failed and what action you needed to take to fix the problem.

      Eventually I had so many issues with people assuming that any errors that didn’t result in a failure were safe to ignore and crucial manual steps were being missed. I had to start making them ‘fail hard’ and stop completely when a step failed because it was the only way to get people to reliably perform the desired manual step.

      Trying to predict and account for other people’s behavior is really tricky, particularly when a high level of precision is required.

      • unreliable
        link
        fedilink
        arrow-up
        32
        arrow-down
        1
        ·
        7 months ago

        It is a developer milestone :) when you learn to be a resilient applicant is about recovery situation you perfect understanding. Fail fast everything else. Repeat 1000 times, you have something

      • TimeSquirrel@kbin.social
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        7 months ago

        This is why I enjoy programming libraries only I will ever use. “Do I need to account for user ignorance and run a bunch of early exit conditions at the beginning of this function to avoid throwing an exception? Naww, fuck it, I know what I’m doing.”

        • jcg@halubilo.social
          link
          fedilink
          arrow-up
          3
          ·
          7 months ago

          It’s the quickest way to prove to yourself that you know what you’re doing… Most of the time, anyway…