长的具有描述性的方法和变量命名是比较好的。
是不是所有的变量命名的前缀都有指示它们长度?
Do all variable names have prefixes which indicate their size in bytes ?
如果你把一个变量命名成loader,那你是成心自找麻烦。
If you're using a variable named loader you're just asking for a Javascript smack down.
如果你发现自己总是过分注释,请先把函数命名和变量命名处理好。
If you are over-commenting, you're probably naming your functions and variables poorly.
因为该注释类型的成员变量不是一个,所以将一个变量命名为value没有任何意义。
Note that this annotation type doesn't have a single-member variable, so you gain nothing by naming one of the variables value.
数组变量的命名同样遵循PHP变量命名约定(参见第9页“变量:数据类型,弱类型,作用域”)。
Array variable names follow the same naming rules as regular PHP variables (see the section "variables: Data Types, Loose Typing, and Scope" on page 9).
正如其他的预处理器变量一样(第2.9.2 节),不可以使用NULL这个标识符给自定义的变量命名。
As with any preprocessor variable ( Section 2.9.2, p. 71) we should not use the name NULL for our own variables.
变量命名得当的话,就没必要用太多注释了,不过名字要是太长了,表达式读起来也挺麻烦,所以就得权衡着来了。
Good variable names can reduce the need for comments, but long names can make complex expressions hard to read, so there is a tradeoff.
函数的名字就是print_lyrics,函数的命名规则和变量命名规则基本差不多,都是字幕梳子或者下划线,但是不能用数字打头。
The name of the function is print_lyrics. The rules for function names are the same as for variable names: letters, Numbers and underscore are legal, but the first character can't be a number.
不要使用普通易读的词语命名内部变量。
请注意约束和决策变量现在在TOY 后面是如何命名的,这样看起来非常清晰,而且组织良好。
Note how the constraints and the decision variables are now named after the TOY set, which looks clean and organized.
我们可以试图为每个集合使用不同的命名索引变量;这是一个好主意,尤其是在进行调试时更为突出。
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.
技巧:结合使用大小写命名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.
通常情况下,它通过使用相关元素的名称来命名变量。
It helps to name the variables by using the name of the element that they will be associated with, normally.
当在函数或其它地方引用一个全局变量时,脚本引擎需要搜索整个全局命名空间。
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.
不要使用普通易读的词语命名内部变量。
Do not use normal legible words when naming internal variables?
本文还介绍了其他一些方便的特性,比如带命名变量的动态urls和表单绑定。
The article also covered some of the other convenient features, such as dynamic URLs with named variables and form binding.
变量一般最好根据用途命名(如 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.
单击AddOutput,和之前步骤一样,变量重命名为 RequestOuput并选择Requestdatatype。
Click Add Output. As with the previous step, rename the variable to RequestOuput and select the Request data type.
单击AddOutput,和之前步骤一样,变量重命名为 RequestOuput并选择Requestdatatype。
Click Add Output. As with the previous step, rename the variable to RequestOuput and select the Request data type.
应用推荐