But in general, the choice of variable name is a great way of commenting your code.
但是通常来说,变量名称的选择,是评论你的代码的,一个重要方式。
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,这为调试提供更好的机制。
There is no explicit variable for the message instance in the code; it is inferred.
在代码中没有为消息实体做显式变量声明;它是被推断出来的。
This variable is set in the PHP code invoking the template, as you'll see later in this section.
这个变量是在调用模板的PHP代码中设置的,您将会在本节的后面看到。
The test variable is only accessible through custom code.
测试变量只能通过通用代码来访问。
This variable contains the error code of the latest SQL statement executed.
该变量包含最近执行的一条 SQL语句的错误代码。
It is also possible to access and change a test variable through custom code.
通过通用代码来访问和更改测试变量,也是可能的。
Now, the only variable left in the formula is the year code.
现在公式中唯一的变量就是年代码了。
The program transfers the array nodes into more descriptive variable names, making the code easier to follow.
该程序将数组节点转换为说明性更强的变量名,从而使代码更易于阅读。
The client application code page is determined by the active environment variable.
客户机应用程序编码页由活动环境变量决定。
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).
这样就可以更容易地发现代码中的问题(例如输错的变量名)。
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变量的代码。
In the code, this is read into the dest variable.
在上述代码中,这些信息被读入dest变量。
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)到代码块。
应用推荐