这些忠告建议将提供商与软件包名称包含在存放代码和数据的位置。
These recommendations suggest including the vendor and package name in the location of the code and data.
但是通常来说,变量名称的选择,是评论你的代码的,一个重要方式。
But in general, the choice of variable name is a great way of commenting your code.
因此,您必须使用这个引用名称,除非您对代码作相应的修改。
Therefore, you have to follow this reference name unless you make the corresponding changes in the code.
有了这种安排,代码和容器甚至在资源所使用的名称上不用达成一致。
With this setup, the code and the container do not even have to agree on the name to use for the resource.
每个文件包含输入文件中的某个客户的名称和电子邮件地址,以及一些XML代码。
Each file will contain the name and email of one of the customers in an input file plus some XML code.
通过设置国家名称或国家的ISO代码,系统在计算时会自动地选择恰当的电能系数。
By setting this to the name or ISO code of your country, the appropriate electricity factor will be taken into account automatically.
下面的代码用于检索这些资源的名称,还可以使用这里没有列举的其他值。
The following code retrieves the names of each of these resources; other values not listed here are also available.
我们现在还了解了如何使用名称空间在大型应用程序中更加安全地包含第三方代码,同时不需要担心名称冲突。
We also now know how using namespaces can make it much safer to include third party code in large applications without the worry of name collisions.
段可以包含可执行代码、符号名称、初始数据值和许多其他类型的数据。
Sections can contain executable code, symbol names, initialized data values, and many other types of data.
资源引用名:资源引用的名称,是代码部分用来识别资源之用。
Resource reference name: the name for the resource reference that the code component uses to identify the resource.
如果您想调用的代码已经存在,则只需改变类名以与它的名称匹配。
If the code that you want to call already exists, just change the class name to match its name.
以此方式,代码可以脱离容器的资源管理而仍然可以轻易的通过资源的名称访问资源。
This way, the code can leave the resource management to the container and yet easily access a resource through its name.
最初的想法是开发能够由随机作者名称直接查询浏览数据库的定制代码。
The initial idea was to develop custom code that would query the Browse database directly for a random author name.
在进行JNDI名称查询时将在代码中使用这个引用名。
This reference name is used in the code when doing a JNDI name lookup.
这个名称背后的思想是软件开发的最佳实践,例如编写单元测试和代码复查。
The idea behind the name is that there are best practices for software development, such as writing unit tests and code reviews.
如果我想要改变我的代码中某个方法的名称,改就好了。
If I were just going to change a method name in my code, I'd just do it.
这段代码完成的主要工作是检查广告客户挑选的名称是否已被占用。
The main thing this does is check to see if the name the advertiser picked has already been taken.
清单1中的机场名称信息通常是一行代码。
Note that the airport name information in Listing 1 usually is a single line of code.
在代码中使用客户名称或引用,您实际就是让代码立即变得落伍,限制了其用途。
By using the customer name or reference in the code, you are instantly dating your code and limiting its use.
使用名称空间可以帮助识别代码提供的函数或实用程序,甚至可以帮助指定其来源。
The use of namespaces can help identify what function or utility the code provides, or even help specify its origin.
这意味着,借助所提供的代码,您只需在根节点上声明此名称空间。
This means, with the code provided, you only get the namespaces declared on the root node.
这种方法有很多名称:配置管理、变更管理、源代码控制、库控制、版本控制等等。
This approach has many names: configuration management, change management, source code control, library control, version control and so on.
通过为服务器名称、API名称等设置变量或属性文件可以改进此代码,我将把这项任务留给您去做。
I'll leave it up to you to improve this code by setting up variables or property files for the server name, API name, and so on.
最后,我们可以只在代码中使用名称空间,这就使它成为默认名称空间,并且在默认情况下,使所有代码都引用默认名称空间。
And finally, we can simply just use the namespace within our code, which makes it the default namespace and, by default, makes all calls reference that.
为了有效地使用名称空间,应该在编写代码之前设计自己的命名约定。
To benefit from namespaces, you should design your naming conventions before keying a line of code.
每个定义的XA资源都必须具有唯一的数据库名称,此名称需与相关代码建立到数据源的连接时使用的名称匹配。
Each XA resource defined must have a unique database name that matches the name used when the relevant code makes its connection to the data source.
例如,php名称空间的最佳实践之一是,在代码中使用绝对引用完全限定名称空间,而不是相对引用。
For example, it is a best practice with PHP namespaces to fully qualify your namespaces within your code using with absolute references rather than relative references.
如果源代码文件中有名称空间声明,那么对类、函数和常量的所有引用都使用名称空间语义。
If a source file has a namespace declaration, then all references to classes, functions, and constants use the namespace semantics.
只要正确使用,除了提供上下文之外,名称空间还可以用来组织php代码。
When used correctly, namespaces can be a method for organizing your PHP code in addition to providing context.
选择要导出的目标目录名称并选取复选框以包含源代码。
Choose the name of the directory to export to and check the box to include your source.
应用推荐