阅读背景:

是否有涵盖变量范围的代码度量

来源:互联网 

In trying to get an overview of how difficult some legacy C++ and C# code is to maintain, and the risk of introducing bugs to it, it has been suggested that it would be useful to measure how widely or narrowly variables are scoped. The code uses a lot of globals, or widely scoped variables, where local ones would be better. A common occurrence is to find that these variables are used for 2 or 3 lines of code several scope levels in from where they are declared.In trying to get an overview of how difficult s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: