代码度量是一种计算代码复杂度的数学方法。
Code metrics are a way to mathematically calculate the complexity of code.
计算代码复杂度的老方法,一般是统计一个给定的函数或方法中的代码行数目。
The oldest method for calculating code complexity is counting the number of lines in a given function or method.
据此,软件质量管理人员和测试人员可以获取以下几个方面的信息:1、系统级,模块级以及函数级的源代码复杂度信息及质量报告。
Thus, quality management engineer and testing engineer can get such information: 1. Complexity Information and Quality Report for System, Module and Function.
例如,实际上可以很容易地配置一个设备(就像Ambient Or b),在代码复杂度有所上升时,或者在违反一定数量的代码标准时,使用该设备改变颜色。
For example, it's actually quite easy to configure a device, like the Ambient Orb, to change colors if code complexity increases or even if a certain number of coding standards are violated.
代码中有些方面你以为平常不过,但是一旦你要实现系统中其他所有必需的部分时,复杂度又随之放大。
Aspects of the code that you think are trivial will magnify in complexity once you implement all the other required parts of the system.
在这里,有趣的是我们可以使用圈复杂度而不是使用代码覆盖率来找出这个缺陷。
What's interesting here is that we were able to spot this defect using cyclomatic complexity rather than code coverage.
拥有相互依赖的线程将极大地增大代码的复杂度。
Having threads that depend on one another dramatically increases the complexity of your code.
痛苦本身在于使用大型代码库的复杂度。
随着时间的迁移,系统实现与复杂度将共存,因为修改问题和添加新功能将会增加代码量。
Over time, an implementation will accrete complexity as code is revisited for bug fixes and feature enhancements.
减少维护和实现端口的复杂度和代码量。
Reduce the complexity and amount of code required to maintain and implement a port.
尽可能重用代码,使你的软件复杂度最小化。
Minimize the complexity of your software through code re-use wherever possible
我的本能指引我返回int,但是它给底部的代码增加了很多复杂度而没有给我带来任何好处。
My instinct led me to return an int , but it adds a lot of complexity to the code at the bottom and doesn't buy my anything.
通过明确分离表示逻辑和交互逻辑降低GUI代码的复杂度
Reduce the complexity of GUI code by allowing for a clear separation of presentation logic and interaction logic
之前每个if块占用3行代码(并贡献了1 个点的圈复杂度)。
Each of the former if blocks took 3 lines of code (and contributed 1 cyclomatic complexity point).
计算机输出的Kolmogorov复杂度是指能产生该输出的可能最短程序(基于计算机代码的二进制位数)。
The Kolmogorov complexity of a computer's output is the shortest possible program (measured in the binary digits that lie at the bottom of all computer code) that could produce that output.
它的一个显著缺陷就是,任务名称嵌入到应用程序代码中,从而增加了不必要的维护复杂度。
One obvious drawback is that the name of the task gets embedded in the application code, thus adding unwanted maintenance complexity.
通常,长方法和大类也暗示着存在其他代码味道,如条件复杂度和重复代码。
Often, long methods and large classes are indications of other code smells, such as conditional complexity and duplicated code.
复杂度也能够生成对于设计和设计到代码的转换的效率的深度观察。
Complexity can also yield deep insights into the effectiveness of a design and the translation of that design into code.
既然任何编程项目的目标之一是减少用户复杂度,所以最好大幅度缩短代码,或者至少更好地组织代码。
Since one of the goals for any programming project should be the reduction of complexity for the user, it would be nice to dramatically shrink the code, or at least organize it better.
条件复杂度可以以几种不同的方式出现在源代码中。
Conditional complexity can manifest in several different ways in source code.
“五大”代码分析最后的一项是测量复杂度。
The final measure in the "big five" code analysis areas is complexity.
它会增加代码行数,增加复杂度,而且会增加您真正关注的业务逻辑代码的阅读难度。
It means extra code, extra complexity, and it obscures the real business logic that is your true focus.
与圈复杂度相关的常见问题包括 “我的代码与别人的代码相比怎么样?”和 “对于一个类,多大的数值是合适的?”
Some of the common questions relating to cyclomatic complexity are "How does my code compare to others?" and "What is a good number for a particular class?"
Swing威力以其复杂度作为代价;理解Swing代码与编写该代码一样有挑战性。
Swing's power comes at the price of complexity; understanding Swing code can be as challenging as writing it.
讨论了结构覆盖测试技术和程序复杂度,研究了基于决策到决策路径(DD -路径)的代码覆盖技术。
Structure coverage testing technology and program complexity is discussed, and the code coverage technology based on decision to decision path (DD-path) is studied.
原始强迫症(Primitive Obsession,缺少正确层次的抽象)会导致大多数问题,包括代码重复和条件复杂度。
My take was that its Primitive Obsession (lack of right level abstractions) that causes majority of the problems including duplication and conditional complexity.
这决定了Packrat解析的时间复杂度是线 性的,但是缺点是需要很大的内存,通常是源代码大小的几倍。
This allows for the runtime behavior to be linear, but has the downside of relatively large memory requirements, potentially multiple times the size of the input source.
线性扫描算法的应用使TTA编译器具有生成目标代码质量高、算法的时间和空间复杂度低、易于实现等优点。
The application of this algorithm makes TTA compiler so many advantages, such as the quality of code obtained is high, time and space complexity is low, and implementation is easy.
为此,我们引入过程蓝图改进该方法,降低程序的空间复杂度,并避免将源代码变换为后缀树这一复杂过程。
In order to reduce the space complexity of the arithmetic and avoid transforming the source code top-suffix tree, the method is improved based-on process blueprint.
为此,我们引入过程蓝图改进该方法,降低程序的空间复杂度,并避免将源代码变换为后缀树这一复杂过程。
In order to reduce the space complexity of the arithmetic and avoid transforming the source code top-suffix tree, the method is improved based-on process blueprint.
应用推荐