Increasingly so, the more experienced I get…

  • HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    18
    ·
    edit-2
    6 months ago

    Proprietary software be like:

    try:
        whatever()
    except Exception:
        print("oops something went wrong uwu")
        print("also this is purely to get rid of the stack trace because apparently the only thing worse than not handling an exception is scaring the user with anything technical and/or exposing our trade secret architecture")
    
  • Ephera@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    10
    ·
    6 months ago

    Currently implementing error handling for a library I’m building and the process is basically to just throw all of the information I can find into there. It makes the error handling code quite verbose, but there’s no easy way for me to know whether the underlying errors expose that information already, so this is actually easier to deal with. 🫠

    • Ithral@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      6 months ago

      Thank you, I hate it when libraries fail and don’t give me good info, like failed to load doesn’t help, failed to load because of syntax error on line 45 of input is soooo nice when that happens.