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.
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.
相关文章推荐
- Writing Better Code – Keepin’ it Maintainable
- 10 Tips for Writing Better Code (阅读理解)
- Become a Better Developer: 3 Ways Writing Will Expand Your Mind, Improve Your Code and Grow Your Career
- Become a Better Developer: 3 Ways Writing Will Expand Your Mind, Improve Your Code and Grow Your Car
- Writing Code Suitable for Implementation with Conditional Moves
- Using VS 2005 Code Snippets to Write Better Code Faster
- 笔记--- Writing Code for ROM
- Writing a full JSON Serializer in 100 lines of C# code
- Writing Fast Matlab code 1
- Tips for writing efficient Python code
- 网站推广术:CodeBetter.com送书了
- 10 Tips for Writing Better MRDs - Part 1
- Writing Secure Code, Second Edition
- Writing Efficient C Code for Embedded Systems
- cf#302 C. Writing Code dp
- Writing code that captures videos on Android(录制视频,带相机预览)
- 写一段小型溢出代码(译自:Writing Small Shellcode)
- What I Learned as a Junior Developer Writing Tests for Legacy Code(转载)
- current user without writing code
- Writing Fast Matlab code 3-5