发布时间:2014-08-08 09:13:05
Key Idea 1:There is one metric(公尺) for readability called The Fundamental Theorem of Readability.Code shoulde be written to minimize the time it would take for someone else to understand it.(代码应该尽可能写的容易理解)标准:你可以将代码给别人看,并估算别人理解你的代码所.........【阅读全文】
发布时间:2013-07-05 14:06:14
注释:1.注释应该简洁:// CategoryType -> (score, weight)typedef hash_map scoreMap;2. 避免使用含糊的代词// Insert the data into the cache, but check if it's too big firstit过于含糊,应该直指data// Insert the data into the cache, but check if data too big first3.........【阅读全文】