摘要:
Before You AskBefore asking a technical question by e-mail, or in a newsgroup, or on a website chat board, do the following:Try to find an answer by searching the archives of the forum you plan to post to.Try to find an answer by searching the Web.Try to find an answer by reading the manual.Try to f 阅读全文
posted @ 2011-08-08 16:28
Jiang, X.
阅读(160)
评论(0)
推荐(0)
摘要:
Readability and Naming ThingsLink: http://www.codesimplicity.com/post/readability-and-naming-things/#more-797很多人认为决定代码可读性的关键在于他们所使用的字母和符号。他们相信对符号的调整可以改善程序的可读性。在一定程度上,他们是正确的。然而,更基本的原则是:代码的可读性首先由字母和符号的长度(所占空间)决定。这将意味着:代码中需要适当数量的字母,不多也不少。在一行代码中需要通过空格来分离不同的部分,不同的操作应该在不同的行中出现并使用适当的缩排。它实际上是通过空缺来使代码具备更好地可读 阅读全文
posted @ 2011-08-08 16:19
Jiang, X.
阅读(336)
评论(0)
推荐(0)


浙公网安备 33010602011771号