Dict.CN 在线词典, 英语学习, 在线翻译 ------------- MyGitee 朱秋贵内科诊所 My腾云code

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 @ 2008-12-20 12:39  cn2024  阅读(222)  评论(0编辑  收藏  举报