112

程序员大咖眼中的整洁代码是怎样的

 6 years ago
source link: http://developer.51cto.com/art/201711/557356.htm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
有多少程序员,就有多少定义。所以我只询问了一些非常知名且经验丰富的程序员。“我喜欢优雅和高效的代码。代码逻辑应当直截了当,叫缺陷难以隐藏;尽量减少依赖关系,使之便于维护;依据某种分层战略完善错误处理代码;性能调至最优,省得引诱别人做没规矩的优化,搞出一堆混乱来。”

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK