易讀代碼的藝術之Code Should Be Easy to Understand

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.
---- 我們發現使代碼易讀與其他目標不會相互干擾,即使在需要高度優化代碼的領域,也還是有方法使代碼有高可讀性,而且使代碼易於理解也會使代碼有良好的架構和易於測試。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章