I wrote cheesy code for some projects. However, reasonable "bad" code. An insidious code can be caused by many reasons, and not just human skills (well, in most cases this is related to skills)
Programmers can write very good code if you have enough time and no pressure from the business. However, business people do not appreciate good coding, but functionality and appearance. I think the "crappy" encoder is the smart guy in the business. He simply developed a solution model, earned software in a short time, and also made the employer happy! If you let the encoder write it again, he / she can do it much better.
First of all, you need to convince yourself to evaluate how many things the early coders went through, this is one of the issues to consider if you are a mature developer or not. Most people complain and even laugh at existing versions because they know that they can do it better. It is like drawing on blank paper with your imagination or making a copy of an existing picture. Which one is harder?
Secondly , look at the general code and find out where it can be improved, you can find what you misunderstood.
Thirdly , a roadmap, this may contain recent and future TODO
Finally , start planning how you can improve it if you create it from scratch, a new architecture, etc. and present it to the leadership when it is ready and complete.
Each software has room for improvement, so you hired it to improve it.
Ray lu
source share