通常情况下,它通过使用相关元素的名称来命名变量。
It helps to name the variables by using the name of the element that they will be associated with, normally.
命名变量的意义在于让读者能够立即理解该变量的用意。
The point of naming a variable is to enable the reader to instantly go, "Oh. I know what that does."
必要时重构这个代码。例如,重组语句、重命名变量等等。
Refactor the code if required. For example, reorganize the statements, rename the variables, and so on.
若要解决此警告,请避免使用为内联程序集保留的字命名变量。
To fix this warning, avoid naming variables with words reserved for inline assembly.
本文还介绍了其他一些方便的特性,比如带命名变量的动态urls和表单绑定。
The article also covered some of the other convenient features, such as dynamic URLs with named variables and form binding.
关于变量名字我还想说的,另外一点就是,一旦我对变量的名称可以选择,我可以用自己的方式命名,但是,有一些词汇是,不能用来命名变量的。
OK. The other piece I want to say about variable names is, once I have that choice of variable name, I can use it, but in fact there are a few things that I can't use in terms of variable names.
请注意约束和决策变量现在在TOY 后面是如何命名的,这样看起来非常清晰,而且组织良好。
Note how the constraints and the decision variables are now named after the TOY set, which looks clean and organized.
在你数据库中命名和输入的“列”却被重新命名和构造,被当成了程序代码中的实体变量。
Columns that are named and typed on your database are renamed and re-typed as instance variables in your application code.
我们可以试图为每个集合使用不同的命名索引变量;这是一个好主意,尤其是在进行调试时更为突出。
Try to use a differently named index variable for each set consistently; it's a good idea, especially when debugging.
需要设置变量是因为(可能在命名模板中)使用了一系列“编程”指令来设置它的值。
You needed to set the variable because you used a sequence of "programming" instructions, possibly in a named template, to set its value.
每个指示符变量都必须单独命名。
在命名内部变量时,避免使用普通易读的词语。
When naming internal variables, avoid using normal legible words.
如果模式和其中一个命名图匹配,那么这个图的URI就被绑定到GRAPH的变量上。
If the pattern matches against one of the named graphs, then that graph's URI is bound to the graph's variable.
技巧:结合使用大小写命名DNT变量能够帮助译者在翻译时忽略它们。
Tip: Naming DNT variable with a combination of uppercase and lowercase can help the translator to ignore them when translating.
用简单地查找和替换,你必须手工决定应该重命名哪一个变量。
With a simple search and replace you have to decide manually which occurrences should be renamed.
当你重命名一个参数时,它会自动根据名称映射到一个路径变量上,注解中的路径变量也会随之改变。
So when you rename a parameter that is also automatically mapped by its name to a path variable, the path variable in the annotation is changed automatically as well.
当在函数或其它地方引用一个全局变量时,脚本引擎需要搜索整个全局命名空间。
Also when a global variable is referenced inside a function or another scope, the script engine has to search through the whole scope to find it.
为宏建立明确的命名约定,并指出来自样板代码的变量。
Have a naming convention which clearly labels macros as such, as well as indicate that a variable came from boilerplate code.
在SPARQL查询内部用GRAPH关键字调用命名图,后面是图的URI或变量名。
Named graphs are used within a SPARQL query with the graph keyword, in conjunction with either a graph URI or a variable name.
不要使用普通易读的词语命名内部变量。
Do not use normal legible words when naming internal variables?
这意味着表示同一个人的节点不能在查询的两个命名图中同时存在,所以必须用不同的变量 (x和y)来表示它们。
This means that the same person node can not exist in both named graphs in the query, and so different variables (x and y) must be used to represent them.
因为该注释类型的成员变量不是一个,所以将一个变量命名为value没有任何意义。
Note that this annotation type doesn't have a single-member variable, so you gain nothing by naming one of the variables value.
变量一般最好根据用途命名(如 firstName或rtitle),不过由于这个变量基本上是一个循环计数器,也可使用单个字母。
Normally, variables are best named by their use (like firstName or title), but as this variable is essentially a loop counter, using single letters is also fine.
如果指定了可选的var属性,那么将把由basename属性所标识的资源束赋给该属性值所命名的变量。
If the optional var attribute is specified, then the resource bundle identified by the basename attribute will be assigned to the variable named by this attribute's value.
author类应该有成员变量lastName和firstName这里会出现前面提到的命名问题,author中的成员变量应该是last - name,还是lastName ?
The author class should have a lastName and firstName member variable note the naming issues already, but should the member variables in author be last-name or lastName?
您可以使用它重命名项目中的任何方法、变量或类。
You can use it to rename any method, variable, or class in your project. To try it
var属性允许命名用来保存当前项的变量。
The var attribute allows you to name the variable used to hold the current item.
如果你把一个变量命名成loader,那你是成心自找麻烦。
If you're using a variable named loader you're just asking for a Javascript smack down.
如果你把一个变量命名成loader,那你是成心自找麻烦。
If you're using a variable named loader you're just asking for a Javascript smack down.
应用推荐