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?"
与圈复杂度相关的常见问题包括 “我的代码与别人的代码相比怎么样?”和 “对于一个类,多大的数值是合适的?”
In waterfall processes, it is not possible to directly compare analysis activity metrics with design activity metrics or code activity metrics, because they are entirely different activities.
在瀑布过程中,不太可能直接比较分析活动量度和设计活动量度或编码活动量度,因为它们是完全不同的活动。
If for some reason this isn't the case, compare your code with Listing 1 to make sure you have all the correct commands.
如果由于一些原因这没有发生,把你的代码与列表1中的进行比较,确保你的所有命令都是正确的。
I recommend generating code from the model itself because you can compare it with the target and generate code selectively.
我建议从模型自身产生代码,因为你可以把它根目标和产生代码作比较。
If you compare this to the code from the SAAJ article, you can see that you have moved a good distance away from knowledge of the SOAP protocol.
如果您将这段代码与SAAJ那篇文章中的进行比较,就可以看出,您的知识已经从SOAP协议向前迈进了一大步。
Compare this code with the XML above, and you should be able to get a good sense of how the API operates.
通过将此代码与上面的XML进行比较,您应当能够很好地理解API的操作方式。
As you can see from the following comments section, the code first develops five samples of tones to compare together to form a basis for computing deviation.
您可以从随后的注释部分中看到,代码首先将开发五种样例音调并一起比较以形成计算偏差的依据。
Is there a way to compare an existing diagram with a code base that has changed?
有没有什么办法可以比较现有的图表和改变后的代码基呢?
First, they allow you to compare your code base to others along several dimensions.
首先,可以通过它们比较自己和别人的代码库。
If you compare the two applications, you'll see that there is just one line of extra code in Step 3 of Listing 5.
如果比较两个应用程序,就会看到清单5的步骤3中只有一行额外代码。
Now, compare the SQL-based code in Listing 5 with the SPARQL-based code in Listing 6.
现在,比较清单5中基于SQL的代码与清单6中基于SPARQL的代码。
When I have the TDD version complete, I'll compare some metrics between the two code bases.
在我完成TDD版本时,我将比较一下两个代码库。
Compare that SQL-based code with the SPARQL-based code shown in Listing 2.
将这段基于SQL的代码与清单2中所示的基于SPARQL的代码相比较。
Let's look at the JSP source code that USES a command link and compare it to the source code that USES a command button.
现在让我们来比较一下使用命令链接的JS p源代码和使用命令按钮的源代码。
Compare the code for the Place an Order dialog (at the beginning of this section) with the same behavior using FindAppObjects and FindBasicAppObjects in the following example.
比较PlaceanOrder对话框的代码(在此部分的开头)和在下面实例中使用FindAppObjects和FindBasicAppObjects的同样的行为。
Compare a local version against code stored in the repository using the Compare With option in the project context menu (see below).
使用项目上下文菜单中的CompareWith…选项将本地版本与资源库中存储的代码进行比较(请参阅图5)。
At this point, the user need to choose if he wants to browse dependencies, browse metrics, query the code base with the CQL language, compare 2 analysis etc...
此时,如果用户希望浏览依赖关系或软件度量,或者通过CQL语言查询代码库,以及比较分析结果等……都需要对此进行选择。
Then, the kernel itself has a RAMdisk built into it that contains some of the security features; compare with the code found on the hard drive, such as the /var/utils/checkkernel.tcl script.
然后,内核本身具有一个内嵌的RAMdisk,其中包含了一些安全性特性;我们可以对在硬盘上找到的代码进行比较,例如 /var/utils/checkkernel.tcl 脚本。
Compound literals and designated initializers are a wonderful code maintainability feature. Compare these two code fragments.
复合文字和指定的初始化程序是非常好的代码可维护性特性。
The first thing some sites did was evaluate it and compare it to Vista when the code was in a very early state.
某些网站的第一反应就是评估该架构并将这些初级形态的代码与Vista进行比较。
If you want to compare what the raw code looks like outside of CodeIgniter, you can visit fbtest.tripledogs.com—a little sub-domain that I set up that has the raw SDK running without CodeIgniter.
如果您想比较在CodeIgniter 环境外的原始代码,您可以访问 fbtest.tripledogs.com —我建立的一个小子域,可以在没有 CodeIgniter 的情况下运行的原始SDK。
You can find some existing functions to compare Eclipse plug-in versions, or you can write a simple function to compare plug-in versions based on the sample code in Listing 4.
我们可以利用现有的一些函数来对Eclipse插件的版本进行比较,或者可以基于清单4所示的样例代码编写一个简单的函数来对插件版本进行比较。
On the other hand, compare Listing 3 to the XJ code in Listing 4, which is derived directly from the original XML.
另一方面,比较清单3与清单4中的XJ代码,后者直接来自原始的xml。
Named let's are fairly confusing to talk about, so take a look at the following code and compare it with the code in Listing 7.
命名let的内容讨论起来相当费解,所以来看下面的代码,并将其与清单7中的代码相比较。
Now compare the SQL-based code in Listing 7 with the SPARQL-based code in Listing 8 for the update operation.
现在比较清单7中基于SQL的代码与清单8中基于SPARQL的代码中的update操作。
Now compare the SQL-based PHP code in Listing 15 with the SPARQL-based PHP code in Listing 16 for the update operation.
现在比较清单15中基于SQL的PHP代码与清单16中基于SPARQL的PHP代码中的update操作。
Now compare the SQL-based PHP code in Listing 15 with the SPARQL-based PHP code in Listing 16 for the update operation.
现在比较清单15中基于SQL的PHP代码与清单16中基于SPARQL的PHP代码中的update操作。
应用推荐