注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

中吴南顾惟一笑

成功法则就是那19个字

 
 
 

日志

 
 

Code review best practice  

2012-06-12 23:27:25|  分类: R&D |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
Code Inspection Techniques

What CI do?
    Detect errors
    Ensure coding style follow C/C++ coding standard, etc.
    Not correction!
    Not design forum!
    Not brainstorming session!
    Not problem solving methodology!
How to do CI?
    Authors determine CI type (meeting or desktop) correctly
    Authors identify the effective inspection team following Software Development Process.
    Use tool to create code package (MUST)
    Create scenario walk-through document or general information file (Recommended)
    Send out CI notice
    Self-reinspect code again and prepare for responding to comments and questions
    Conduct CI and ensure 100% NCSL are inspected
    Rework and send out reworked package
    Verify reworked package
    CI complete and deliver
About Scenario Walk-through
    There is no formal template but some general rules
    It is a process for guiding code inspectors through the actions taken by software in response to one or more "events"(e.g. arrival of a message, occurrence of a hardware error, etc)
    It provides a hypothetical but practical context to assist the inspection of code
    The number and size of scenarios needed for a CI depends on the complexity of the code.
    The code is marked as it is traversed during the scenario walk-through.
    A goal for scenario walk-through coverage is 85%. After the scenarios are inspected, any remaining code should be inspected.
    Scenarios focus not only on the right things being done, but also, that they are being done right. The logic is verified

Advice

Look at code, even if you don’t understand.
Ask "stupid" questions.
Use tools to get experts to teach you.
Learn from answers & experience.
Build your knowledge over time.
Nobody knows everything...
  评论这张
 
阅读(103)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017