• lobut@lemmy.ca
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    I remember when I was working with .NET and I saw some web service code and I saw there was no try catches. They didn’t have a global catch in the asax either or anything. I just wrapped each call into a try catch and log.

    I got the same treatment where my manager wanted to know what happened with the increase in errors. I told him what I did. My manager got another developer to go through my commits regardless. I was a bit upset at the lack of trust.

    • magikmw@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      A manager that can’t read a simple try catch commit? Why am I surprised.

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

      I joined a team years ago where everyone would catch exceptions then throw a different exception in the catch, swallowing the original. Sometimes these were nested many layers. Troubleshooting was a nightmare.

      I spent a week deleting all of them and told everybody that “try” was now a forbidden word outside of entry points.