Hacker News new | ask | show | jobs
by meragrin 4070 days ago
Just merely writing what you think is a shorter, cleaner, better solution isn't really enough. It can be easy to overlook the reason for the complexity. If the rewrite seems to work as a replacement, just use it to come up with questions about the current code and ask the co-worker. If there are actual reasons for the complexity, add the necessary comments so someone else doesn't have to go through that or find out the hard way.