News for hackers. Stuff that matters.

jrdev

Re:Ask HN: How do you deal with a sr dev writing bad code? on Wednesday March 20, 2013 @05:10AM (#5406229)
He doesn't have a supervisor.
Re:Ask HN: How do you deal with a sr dev writing bad code? on Wednesday March 20, 2013 @04:35AM (#5406161)
In this particular case, the changes are all trivial improvements, there is no complexity introduced, just needless complexity removed, with better code construction, as the previous code is actually impossible to extend.

The code is similar to something you would expect to see from a brand new developer, common mistakes made due to a fundamental misunderstanding of the core language functionality.

Ask HN: How do you deal with a sr dev writing bad code?

My 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...

( Read More... | 7 comments | 2 points | on HN )