, ]8 C, D1 K1 O, |. k3 H1 u5 q% I$ u, q 关于其他方面的说明定义: 5 X* T" x v) @7 t: S6 _ $ o7 ^/ s4 b3 `: i" ?8 D% L# D9 u 'Good code' is code that works, is bug free, and is readable and maintainable. Some organizations have coding 'standards' that all developers are supposed to adhere to, but everyone has different ideas about what's best, or what is too many or too few rules. There are also various theories and metrics, such as McCabe Complexity metrics. It should be kept in mind that excessive use of standards and rules can stifle productivity and creativity. 'Peer reviews', 'buddy checks' code analysis tools, etc. can be used to check for problems and enforce standards. 0 `6 V9 \, G0 l6 O z/ B6 \* i; t [3 ] 另外,来自 MSDN END BRACKET 栏目的作者 Paul DiLascia ,也列出了优秀代码应有的物质:不管你用什么语言进行开发,所有的优秀代码都会展示出共有的经典品质:简练,易于理解,模块化,层次性,设计良好,高效,优雅,并且清晰。 6 n* w& V# ]3 v" [6 h8 z5 I--------------------- Z8 ^: j- x2 I( V, j1 z! r
作者:美丽海洋 * Y2 E- |8 q B: s$ ]3 n: I来源:CSDN + E$ o* E' S. \' t/ B2 h/ Q; h. n1 c9 [
4 H! g0 R$ }4 d8 i, b 0 B+ }& @+ Z i/ P) J) l. p" I+ C $ }9 D) G* @6 o* B. s& l* P