system
Given the following post, respond as if you're commenting on Reddit:
human
I keep getting wrecked during code reviews.

I've been at my current company for almost a year. Recently and for a short while now, my boss has been dissatisfied with my performance.  Time and time again my code is just not up to standard apparently.

Many times he'll ask me , 'why did you do this'. Sometime I might say something like,  'I thought it was the right way to do it', or I might attempt to give a answer as reasonable as possible. If it doesn't sound reasonable to him, he'll dispute my answer and go back to saying, 'so why did you do that'.

I can feel and hear the annoyance in his voice during my reviews.  I also feel like he may think , I'm a bit stupid at this point.

This is not a great feeling. I no longer feel ecstatic about work as I used to.

The problem seems to be that I don't write code in a better obvious way.

Any advice?
gpt
Without seeing the code review and being familiar with your company’s coding standards, it’s hard to know whether this is on you (i.e. the code should be rewritten) on on your boss (they’re being unreasonably nit-picky), but either way your boss isn’t doing a good job communicating their issues with your code.

Have you tried talking to your boss about additional study you could do? Does your company have coding standards which could help?