CompilerTech

导航

2013年2月21日

Good Routine Names

摘要: Describe everything the routine does 描述子程序所作的所有事情describe all the outputs and side effects. If a routine computes report totals and opens an output file, ComputeReportTotals() is not an adequate name for the routine. ComputeReportTotalsAndOpen-OutputFile() is an adequate name but is too long and si. 阅读全文

posted @ 2013-02-21 15:45 compilerTech 阅读(332) 评论(0) 推荐(0) 编辑