Ask HN: How do you deal with a sr dev writing bad code? 13 years ago
He doesn't have a supervisor.
HN user
He doesn't have a supervisor.
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.