Bossman shames me about my code. What should can I do?

Bossman who is also an engineer, has told me I won’t be anything more than average at best as a programmer before.
Now today when reviewing my code, he expressed his frustrations with the code in a mockingly way and in front of everyone.

It’s so embarrassing though, to be humiliated like that in front of everyone about your code, even after working more than 2 years at the company.

The thing is, he doesn’t even realize that some of the code was written by himself, and assumes that every instance where the code is bad, is by me, even when others wrote it as well. I don’t know if it’s because I’m the only one without an IT related degree on the team.

He has admitted that he doesn’t see any improvement from me since I started at the company over 2 years ago. In my heart I know and see I have learnt much more and have improved but no matter how hard I try, it seems my efforts are futile.

Reviewing my code in a mocking manner, and him shaking his head at my code in front of me the entire time, makes me feel uneasy and stupid. My heart is just heavy at this point.

What should I do?

View Reddit by follow_ChirstView Source