• FiniteLooper@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    I came across a stack overflow recently about how to do something in a jasmine unit test. Someone gave a solution of “I just changed the test to xit(“… and now there are no errors!”

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    Still not as excellent as On Error Resume Next

    Imagine the sheer idiocy genius required to add a language feature where, if an error occurred, the handling method is to just pretend that line of code never existed and continue onto the next line.

    VBA is truly the language of savants.

    • wizardbeard@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      PowerShell does that by default, and it’s my least favorite feature in my most used language.

      $ErrorActionPreference = Stop

      At the start of almost every script.