Dict.CN 在线词典, 英语学习, 在线翻译 ------------- MyGitee My腾云code

Happy_EveryDay

可以平凡 不可以平庸 无爱则无忧,无欲则无求,无怒而无敌,无怨才是佛。所有烦恼,都是放不下的执著 开源技群 328035181 MyGitee

Writing Better Code

Writing maintainable code is an art form that should be practiced by every developer because if the code we write can not be maintained then there will come a point where it won’t be useful anymore and discarded and then all of our efforts will have been wasted. In this article we’ll look at ways to keep our code maintainable.

The Developer's Dilemma

There are two main ideas to keep in mind and should follow in order to keep our code maintainable:

1) Complexity is the enemy! 

2) Fragility is the enemy!

The problem we face as developers is that when we are speaking in terms of these two opposing forces, there is a inverse relationship between them.  Creating more flexibility to reduce fragility in our code requires more complex code. 

posted on 2008-12-20 12:39  cn2025  阅读(236)  评论(0)    收藏  举报

导航