易读代码的艺术之Code Should Be Easy to Understand
2015-10-04 12:11
309 查看
1、Code should be easy to understand. ---- 代码应该易读。
2、Code should be written to minimize the time it would take for someone else to understand it.
---- 代码应该被写得使其他人用最少的时间理解它。
3、We've found that these other goals don't interfere much at all. Even in the realm of highly optimized code, there are still ways to make it highly readable as well. And making
your code easy to understand often leads to code that is well architected and easy to test.
---- 我们发现使代码易读与其他目标不会相互干扰,即使在需要高度优化代码的领域,也还是有方法使代码有高可读性,而且使代码易于理解也会使代码有良好的架构和易于测试。
2、Code should be written to minimize the time it would take for someone else to understand it.
---- 代码应该被写得使其他人用最少的时间理解它。
3、We've found that these other goals don't interfere much at all. Even in the realm of highly optimized code, there are still ways to make it highly readable as well. And making
your code easy to understand often leads to code that is well architected and easy to test.
---- 我们发现使代码易读与其他目标不会相互干扰,即使在需要高度优化代码的领域,也还是有方法使代码有高可读性,而且使代码易于理解也会使代码有良好的架构和易于测试。
相关文章推荐
- android 代码实现控件之间的间距
- [Android]在代码里运行另一个程序的方法
- 肯特·贝克:改变人生的代码整理魔法
- 网页恶意代码的预防
- 高手写的Tracer-Flash代码调试类代码下载
- CSS代码缩写技巧
- 非主流Q-zOne代码代码搜集第1/2页
- CreateWeb.vbs 代码
- Lua中编译执行代码相关的函数详解
- 更有效率的css代码编写第1/3页
- 代码中到底应不应当写注释?
- SQL语言查询基础:连接查询 联合查询 代码
- 论坛头像随机变换代码
- .NET 常用功能和代码小结
- C#实现压缩HTML代码的方法
- asp编程中常用的javascript辅助代码第1/2页
- C#超实用代码段合集
- Javascript代码在页面加载时的执行顺序介绍
- JS实现图片无间断滚动代码汇总
- 我的论坛源代码(二)