您的位置:首页 > 其它

Writing Better Code

2008-12-20 12:39 363 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: