Last week, I was forced to make some changes to a very old project. Trouble is, when I started, I really couldn't remember how old the project was.
This is actually my first MVC project implemented with Codeigniter. After opening the project file, a lot of things make my head spin. First, no version control, and second, no comments. Reading the code, my "F*CK/min" value keeps going through the roof.
There are very few Models in the project. The Controller layer has a lot of repetitive code, and the View layer is creepy. I believe there is actually more logic in the View layer than the Model and Controller layers combined.
Should I be ashamed of this?
The answer is NO. (If it were, I wouldn't be writing this blog.)
why not?
Because there is a June rule. The Law of June says that every programmer should look back at the code they wrote 6 months ago, and should spurn the code they wrote back then.
This brings us to the point of this article: If you are a programmer, when you look at the code you wrote 6 months ago, and you see the same level of code you are writing now, stop writing it, you should learn something new.
That's why I'm happy when I see how ugly the old code was written. very happy. This shows that I have made progress. So instead of being ashamed of the ugly code, embrace it with joy, it means you're growing.