Chinaunix首页 | 论坛 | 博客
  • 博客访问: 30451
  • 博文数量: 19
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 237
  • 用 户 组: 普通用户
  • 注册时间: 2013-06-08 23:24
文章分类

全部博文(19)

文章存档

2014年(16)

2013年(3)

我的朋友

发布时间: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.(代码应该尽可能写的容易理解)标准:你可以将代码给别人看,并估算别人理解你的代码所.........【阅读全文】

阅读(440) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(499) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册