Ask HN: How do you deal with a sr dev writing bad code?
https://news.ycombinator.com/item?id=5406112My boss has written several libraries that are all badly architected due to lack of understanding of the language itself and assigned me to manage and extend them.
The glaring issues in these files are more than I can take, they add more hours of work than rewriting the libraries correctly.
My dilemma is that if I rewrite them, I'm essentially calling out the sr dev. I can't see a way to frame the situation as something positive for both of us.