But in general, the choice of variable name is a great way of commenting your code.
但是通常来说,变量名称的选择,是评论你的代码的,一个重要方式。
You can substitute this value with your own text string or a value from another data source, such as a data pool, reference, custom code, or another test variable.
您可以使用您自己的字符串,或者来自另一个数据源的值来替换该值,这些数据源包括数据汇,引用,通用代码,或者其他的测试变量。
This speaks volumes about the need for clear code with good variable names and clean design on a long-term project.
这个事实清楚地证明:长期项目需要那些拥有良好变量名和干净设计的清晰代码。
You can add an optional argument, a variable that holds the return code from the external program, such as 0 for success, which provides a better mechanism for debugging.
您可以添加可选的参数,即保存从外部程序返回的代码的变量,比如表示成功的0,这为调试提供更好的机制。
This variable is set in the PHP code invoking the template, as you'll see later in this section.
这个变量是在调用模板的PHP代码中设置的,您将会在本节的后面看到。
To avoid this, you can override the default client code page by using the DB2 registry variable DB2CODEPAGE.
为了避免这个问题,可以使用DB 2注册表变量DB 2CODEPAGE覆盖默认的客户机编码页。
This variable contains the error code of the latest SQL statement executed.
该变量包含最近执行的一条 SQL语句的错误代码。
Subsequently, its value is set to an order number returned by a custom code action by using a variable assignment action.
随后,它的值会设置为一个顺序号,它是由使用变量分配操作的通用代码所返回的。
The program transfers the array nodes into more descriptive variable names, making the code easier to follow.
该程序将数组节点转换为说明性更强的变量名,从而使代码更易于阅读。
This can be marginally more efficient than using a temporary variable and, by making the code terser, makes it either easier to read or more cryptic, depending on your point of view.
这样比使用临时变量效率更高,代码也变得更加简要,至于这样的代码是易读还是含混,就取决于您的观点了。
It separates the declaration of the variable from its use, making the code a little harder to follow.
它将变量的声明与其使用分离开来,使代码的易读性降低。
So that you have to store the inputted code in a variable, replacing certain HTTP characters with their original values (in this case, quotation marks).
为此,必须将所输入的代码存储在一个变量内,用其原始值替代特定的HTTP字符(在本例中,是引号)。
There must be a class to initialize that variable; the code is shown in Listing 8.
必须有一个类来初始化这个变量;代码见清单8。
That variable is the handle to the program code, which will be used to create your SPE tasks.
那个变量就是到程序代码的句柄,用来创建SPE任务。
The line of code below searches the PATH variable looking for a semicolon.
下面的代码行搜索PATH变量,查找分号。
This is known as "internal encoding" because there is no "external encoding" on the host variable (meaning that there is no code page associated with the host variable).
这被称作“内部编码”,因为主机变量上没有“外部编码”(即没有与主机变量相关联的代码页)。
There is never any reason to write ugly code, a method that spawns multiple pages, or code with cryptic variable names.
没有任何理由编写“丑陋”的代码、长达数页的函数,或是稀奇古怪的变量名。
This makes it much easier to find problems in the code (such as mis-typed variable names).
这样就可以更容易地发现代码中的问题(例如输错的变量名)。
It should be noted that the registry variable DB2CODEPAGE can be used to override the code page.
应该注意,注册表变量DB 2 CODEPAGE可以用来覆盖编码页。
Have a naming convention which clearly labels macros as such, as well as indicate that a variable came from boilerplate code.
为宏建立明确的命名约定,并指出来自样板代码的变量。
Listing 17 Code defines the PATH variable.
清单17定义PATH变量的代码。
This code defines the variable $seeds.
此代码定义了变量 $seeds。
To properly handle the workspace environment variable, we'll add the following code to the build file.
为了合适地处理workspace环境变量,我们将会向构建文件添加以下的代码。
Even though it is the same variable name in the same code, num is different this time.
尽管这是相同代码中的相同变量名,不过num这次不同了。
The menu sets the value of the mode variable; it is fairly trivial code so I've omitted it from Listing 2.
菜单设置mode变量的值; 这个代码不是很重要,因此我在清单2 中省略了它。
The code below defines variable parameters for Getopt::Long, which is invoked to parse the parameters from the command line.
下面的代码定义了Getopt::Long 的变量参数,调用该段代码以解析来自命令行的参数。
Debug stored procedures by stepping through the code, setting breakpoints, and viewing variable content.
通过在代码中逐步执行、设置断点、查看变量内容等方法调试存储过程。
The prefix argument is used as a prefix for the variable names inside the generated code.
prefix参数被用作在已生成的代码内部的变量名的前缀。
The respond_to method accepts a single code block and passes one instance variable (labeled wants) into the code block.
respond _ to方法接受单个代码块,并传递一个实例变量(标为wants)到代码块。
To specify an int variable for an iterator and a String variable for element name, use the code in Listing 17.
要为迭代器指定一个int变量并为元素名称指定一个String变量,请使用清单17中的代码。
应用推荐