This is a great way to test the toxicity of your workplace. I did this twice and got fired!
Yes, it was ultimately a good thing, but the unemployment stretch after was stressful to say the least.
It wasn't some bullshit either like "I made everything more OO!" or something like that, it was "let me show you the math demonstrating why the dollar amounts coming out of this function are wrong".