45

最优雅的8条编程最佳指导语录

 6 years ago
source link: http://www.10tiao.com/html/663/201807/2735612478/1.html
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.
neoserver,ios ssh client

来源:

http://www.techug.com/post/eight-elegant-quotes-on-coding-best-practices.html

语录 #1

用暴力解决你的疑问。
– Ken Thompson, Bell Labs

暴力法也称为穷举证明法、事例证明法、案例分析证明法或完全归纳法,是一种数学证明方法,其中证明待证明的语句被划分成有限数量的情况或等价的情况集,并对每种类型的情况进行检查。看看这个命题是否成立。这是一种直接证明的方法。

语录 #2

避免不对称。
– Andy Huber, Data General Corporation

对称是物理系统和抽象系统的一个重要特性,它可以用更精确的术语来表示,也可以用更美观的术语来表示。对称的缺失或违背,无论是预期的还是期望的,都会对系统产生重要的影响。

语录 #3

您越着急开始写代码,代码就会花费越长的时间。
– Roy Carlson, University of Wisconsin

语录 #4

如果你不能用文字写出它,你也就不能用代码写出它。
– Peter Halpern, Brooklyn, New York

语录 #5

细节很重要。
– Peter Weinberger, Bell Labs

语录 #6

如果代码和注释不一致,那么两者都可能是错误的。
– Norm Schryer, Bell Labs

语录 #7

如果特殊情况太多,那么你一定做错了。
– Craig Zerouni, Computer FX Ltd. London, England

语录 #8

首先数据结构要正确,余下的程序就会自己写来
David Jones, Assen, The NetherLands

在计算机科学中,数据结构是一种能够有效访问和修改的数据组织和存储格式。更确切地说,数据结构是数据值、它们之间的关系以及可应用于数据的函数或操作的集合。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK