Clean Code 读书笔记四

能用表明表述的就不要用注释 减小注释,把精力放在代码上,让代码说话,而不是注释 不要写add by 的注释,用svn 、git管理组件就能够了** 代码中不要保留注释的代码 例如: //Check to see if the employee is eligible for full benefits if ((employee.flags & HOURLY_FLAG) && (employee.
相关文章
相关标签/搜索