this post was submitted on 23 Nov 2023
844 points (97.7% liked)

Programmer Humor

38363 readers
93 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lobut@lemmy.ca 143 points 2 years ago (3 children)

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 24 points 2 years ago (1 children)

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

[–] MonsiuerPatEBrown@reddthat.com 32 points 2 years ago* (last edited 2 years ago) (1 children)

they shouldn't have to do that. the commit log tells the manager who to go ask.

and since the developer did that to be a big swinging dick instead of bringing it up to the team in a meeting as a problem to address together the manager didn't trust them.

makes sense to people that have to manage other humans.

[–] ursakhiin@beehaw.org 12 points 2 years ago

This is a massive assumption from the story that was provided. We don't know that they didn't discuss with the team and an explanation of "I added a log to errors that were already happening" shouldn't result in lack of trust from the manager.

Reactive managers like that are a big problem in the industry.

[–] dark_stang@beehaw.org 9 points 2 years ago (1 children)

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.

[–] lobut@lemmy.ca 5 points 2 years ago

I remember doing that as a junior because everyone in our codebase did it!

My new team lead came in and asked me why. I said it's to reformat it due to the layer it was in. He said "...and what did you really accomplish with that?" All we did was bury our real error really well. It made me think about these things and to question convention more