• argv_minus_one@beehaw.org
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    By “user” I mean the person who is using the application.

    Using exceptions for handling unexceptional errors (like invalid user input) is a footgun. You don’t know when one might be raised, nor what type it will have, so you can easily forget to catch it and handle it properly, and then your app crashes.

    • Olissipo
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      you can easily forget to catch it and handle it properly

      Even if I coded the form by hand and that happened, it’s on me, not on the programming language.

      But I don’t, I use a framework which handles all that boilerplate validation for me.