How do you respect your boss when he asks you to write the code in his fashion for no objective reason other than he likes it that way?
I submitted my code for review and passed all lint checks and presubmits.
I got throttled by a code blocking code review. I got no accolades on my success with the app.
His first review had a few decent comments, some inconsequential bad advice, a serious mistake, and the comment: "I would appreciated it if you would rewrite the code as [example]". Rewrite was no small task.
I explained the objective problems with that example, addressed the bad advice, explained the problem with his serious mistake, and finally, explained why I written the code in the way I had, and, on top of that, I also rewrote it, just to try and appease him.
I ended up taking over an hour to rewrite it. I further provide an explanation of the pros and cons of solving that problem different ways, as I'd analyzed it. Being the author of the code, I'd already analyzed it and made assessments on how to solve that problem.
After that, I had to work on another task that I was to complete that day. I stayed until 8 to do that.
He'd pushed back my productivity on that to refashion the code in a style that he prefers with no objective reason given. I worked 11 hours that day, after a follow up of a 10 hour day prior.
Manager complained about the rewrite I'd done. How do you handle that? If I rewrite it his way, which is objectively worse, and if he cannot provide any objective reasons for why, I won't respect him. I sense he is playing power games, testing me, and trying to find reasons to fire me. As childish as this sounds, I sense that he is disrespecting me on purpose to create an issue.
What I want is to keep my job there and maintain workplace respect.