What is the equivalent of this line of code for Universal Analytics?
通用分析这行代码的等价物是什么?
SBS generated 35,000 line of code for this project, and an estimated of 42% effort was saved.
SBS为此项目生成了35,000行代码,大约节省了42%的工作。
So the developers already have a pretty good idea of how to implement the service, even though they haven't yet implemented a single line of code for it.
因此,开发人员已经非常明确如何实现服务,只是尚未实现其相关的任何代码而已。
Theoretically, if you write code only to satisfy an existing test, then by definition you can achieve coverage for every line of code you write.
理论上说,如果为满足现有的测试而撰写代码,那么您肯定能够实现对您所写的每行代码的覆盖。
Theoretically, if you write code only to satisfy an existing test, then by definition you can achieve coverage for every line of code you write.
理论上说,如果为满足现有的测试而撰写代码,那么您肯定能够实现对您所写的每行代码的覆盖。
Note: Some code listings may have a backslash character, "\", to indicate the line of code is continuous but has been formatted for readability.
注意:有些代码清单有反斜杠字符“\”,这表示代码行是连续的,但为了可读性,这里对其格式作了调整。
For example, with segmentation faults, you need to know on which line of code the seg fault occurred.
举例来说,对于段错误,您需要了解段错误发生在代码的哪一行。
One way would be to create an array of booleans, one for each line of the original method, and add code that sets the appropriate flag as each line is executed.
可以使用的一种方法是创建一个布尔值数组,初始方法中的每一行代码对应一个布尔值,然后添加代码,每执行一行代码就设置相应的标志。
You can use the line of code shown in Listing 6 to specify a default value for an argument that is absent.
您能够使用清单6中所示代码行来为缺失的参数指定默认值。
The detailed analysis functions of this tool enable the administrator to see detailed flows and metrics, including a leak detection analysis that points out the line of code responsible for the leak.
管理员利用此工具的详细分析功能可以查看详细的流程和度量,包括泄漏检测分析,指出造成泄漏的代码行。
If you look at the code for the script you just recorded, you should see a line of code similar to that in Listing 1.
如果您在刚刚记录的脚本里查看代码,您应当看到类似于列表1中的一行代码。
For example, C-based languages use a semicolon (;) to indicate the end of a line of code.
例如,基于C的语言使用分号(;)来指示代码行的结束。
But in software, it is common to execute a line of code that causes an instability that doesn't manifest for hundreds or thousands of seemingly unrelated lines of code away.
但是在软件中,执行一行可能导致不稳定的代码,通常会使数百行甚至几千行似乎不相关的代码出现问题。
Note: in the preceding code example, the code normally appears as a single continuous line. In this instance, the lines of code are split into multiple lines for ease of formatting and printing.
注意:在上面的例子中,代码通常作为单独的连续行出现,但为了便于设置格式和打印,将它分成了多行。
The line of code below searches the PATH variable looking for a semicolon.
下面的代码行搜索PATH变量,查找分号。
By the way, that's a comment on the first line (with the name of the source file for the code example).
顺便说一下,在第一行有一句注释(在代码例子中是源文件的名字)。
The fundamental questions you need to ask are how long will a developer spend writing a line of code and how many lines are going to be required for this project?
您要提出的基本问题是,开发人员编写一行代码需要多长时间以及此项目需要多少行代码。
In fact, for 4 of them, it's as simple as changing one line of code.
事实上,其中4个步骤仅需修改一行代码。
Once every method has at least one test, use a code coverage tool, such as Cobertura, to write one test for every branch until each line of code is tested.
当每个方法都有了至少一个测试,使用一个代码覆盖率工具如cobertura为每个分支编写一个测试,直到每一行代码都能够被测试。
Optionally, for better usability, add the following line of code to the onclick event for the edit button.
为了获得更好的可用性,可以选择将以下代码行添加到编辑按钮的onclick事件。
Every line of code you eliminate is one less place for bugs to sneak in.
每当清除一行代码,也就减少了一个可能隐匿bug的地方。
Now, there's a cost-effective means of seeing how usable your pages are: Userfly, a simple way to test your site's usability for free - with one line of code.
现在有了一个更好的办法测试网页的可用性,Userfly,你可以用它免费测试你的网站可用性,并且只需要一行代码。
It only takes a second to add an additional comment line for each 3 lines of code.
给三行代码加一行注释,只需要你几秒时间。
If Internet Explorer isn't your browser of choice or you write code for non-Microsoft browsers, then you need different code. In fact, this is the really simple line of code you saw back in Listing 1.
如果选择的浏览器不是InternetExplorer,或者为非Microsoft浏览器编写代码,就需要使用不同的代码。
In fact, each record can be printed with a line for the name components; a line for the street component of the address; and a line for the city, state, and zip code components of the address.
事实上,每条记录可以打印为三行:一行打印name元素,一行打印地址的street元素,另外一行打印地址的city、state和zipcode元素。
And add the following line of code to the onclick event for the Replace document and Cancel buttons.
将以下代码行添加到Replacedocument和Cancel按钮的onclick事件。
The following code for a JSP page invokes the table tag to display the Employee table (single line of code displayed on multiple lines for viewing convenience)
JSP页中的下面代码调用表格标记以显示Employee表(为了方便观看,将一行代码显示为多行)
TableValueDisplay.properties (single line of code displayed on multiple lines for viewing convenience)
properties(为方便观看,将一行代码显示为多行)
TableHeaderDisplay.properties (single line of code displayed on multiple lines for viewing convenience).
properties(为方便观看,将一行代码显示为多行)。
That is, if a function has a certain set or range of valid values for its arguments, an assertion to this effect can be placed as the first line of code in the function.
那就是说,如果函数有确定的有效值集合或范围可作为参数,可以将检验参数是否有效的断言放在该函数代码的第一行。
应用推荐