您的位置:首页 > 编程语言

易读代码的艺术之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.

---- 我们发现使代码易读与其他目标不会相互干扰,即使在需要高度优化代码的领域,也还是有方法使代码有高可读性,而且使代码易于理解也会使代码有良好的架构和易于测试。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  代码 易读