• kbal@fedia.io
    link
    fedilink
    arrow-up
    52
    arrow-down
    1
    ·
    edit-2
    9 months ago

    Super-advanced java devs like me do it like try{} catch (Exception e) { System.out.println("something went wrong"); e.printStackTrace(); }

      • xmunk
        link
        fedilink
        arrow-up
        11
        ·
        9 months ago

        On Error Resume Next never before have more terrible words been spoken.

        • tool@lemmy.world
          link
          fedilink
          English
          arrow-up
          8
          ·
          9 months ago

          On Error Resume Next never before have more terrible words been spoken.

          Every time I’m reading a PowerShell script at work and see -ErrorAction SilentlyContinue I want to scream into a pillow and forcefully revert their commit.

          I’ve actually done it a few times, but I want to do it every time.

          • xmunk
            link
            fedilink
            arrow-up
            5
            arrow-down
            1
            ·
            9 months ago

            And that’s why you’re a hero.