Look back at my previous projects done in university and found that i can't even understand some of my codes. Duplicated code, too much loops in a function...Realize that i'm also one of those who write unmaintainable code.
Refactoring is a new term that i have learned from my industrial training supervisor. Being assigned to read through the book - Refactoring by Martin Fowler and found that it's very useful in writing maintainable code.
"Refactoring is a technique to restructure an existing body of code without changing its behavior" - Martin Fowler
Every programmer can write code, but not every programmer can write maintainable code. It's very suffer to maintain a messy code as we can't make sure changes we made to it will not change it's behavior or affect others.
Be in mind that " Always code as if the person who will maintain your code is a maniac serial killer that knows where you live." (one of my favorite programming quotes). So, learn Refactoring.
**It was a little bit upset that Refactoring is not being taught in my university. Should it be taught in university? Absolutely YES!
No comments:
Post a Comment