注意:生产代码可以处理对数组内不存在的属性的请求。
Note: Production code should handle requests for attributes that do not exist in the array.
正如没有哪条规则告诉你代码里的注释一定要怎么写才正确,也不存在“正确”属性的一个普适的列表。
Just as there are no rules that tell you exactly what comments to write in your code, there is no universal list of the "right" attributes.
首先,如果这个角色不存在的话,代码会自动将其添加,然后将用户添加到此角色。
The code first adds the role if it doesn't yet exist, then adds the user to the role.
如果签入某个修复而没有更新错误报告,或者如果不存在将修复与特定代码流和构建版本联系起来的纽带,则团队中的流就会中断。
The flows within the team break down if a fix is checked-in without updating the bug report, or if there is no link to connect the fix to a particular code stream and build.
不存在将连接保持在定制代码中的现成的方法。
There was no obvious way of keeping the connection persistent within custom code.
当然,普通的方法也可以根据运行时条件确定要运行哪些代码,因此,关于在运行时确定“方法”处理的概念不存在什么特别新的内容。
Of course, a regular method can also decide what code to run based on runtime conditions, so there is nothing fundamentally new about this concept of runtime determination of what a "method" does.
在第二种情况下,MCA已对COMMIT采取了行动,但是未能传输响应代码,因此将不存在要回滚的事务。
In the second case, where the MCA has acted on the COMMIT but could not deliver the response code, there is no transaction to roll back.
想要管理应用程序代码简单不过,这样的系统很多。但是对于存储过程和触发器来说,这样的系统并不存在。
It is easy to control all changes to application code by running it through a proper version control system, but those facilities do not exist for stored procedures and triggers.
从长期来看,依赖已经不存在了;从短期来看,代码移植更加迅速。
In the long term, the dependency goes away; in the short term, the code migration occurs more quickly.
如何为尚不存在的代码编写测试呢?
How can you write a test for something that doesn't exist yet?
该错误是SQLException,错误代码为OR A- 00942。很显然,是因为期望的数据库表或视图不存在。
The error is SQLException, error code ORA-00942; specifically, an expected database table or view does not exist.
如果这种颜色不存在,代码就会给node赋一个新的随机选择的颜色。
If it doesn't exist, the code permanently assigns node a new, randomly chosen color.
如果该文件不存在或者有明确请求要求刷新文件,则代码获取存储在Amazon上的所有ami的详细列表。
If the file doesn't exist or there is an explicit request to refresh it, the code gets the list of details for all the AMIs at Amazon.
实际上,您可以假装SPE不存在,代码依然可以很好地工作。
In fact, you can pretend that they don't exist and your code will work just fine.
在Seed文件之前,不存在初始化的惯例,许多开发人员把代码放入迁移中,这样容易混淆创建数据库和填充数据库之间的不同之处。
Prior to the seed file, no convention existed for initialization, and many developers put code in migrations, clouding the differentiation between creating the database and populating it.
API工具现在可以分析系统类库的使用情况及代码访问运行时不存在的成员时所产生的问题。
API tools can now analyze use of system libraries and create problems when code accesses members that may not be present at runtime.
不要害怕扔掉代码.重构和重新编码是两个非常重要的领域.当你遇到已经不存在的需求,或者你没有意识到你能找到比开始编写的代码更好地解决旧问题和新问题的方案,如果你遵循上面的建议,需要重构的代码已经最小化了.如果你没有遵循上面的建议,你可能需要重新编码.
Many developers solve their problem while they are coding, and there is nothing wrong doing that. As a matter of fact, you can do that and still adhere to the above statement.
不可构建格式是指来自源主机的实际代码并不存在于包中。这种情况只可能发生在包是在软件包编辑器中构建的情况下。
Not-built format states that the actual code from the source host does not reside in the package this will only happen if the package is built inside the software package editor.
在设置404错误页面的时候,一定要确保服务器提交一个404错误代码,如果某个页面不存在的话。
When you set up your 404 error page, make sure that the server delivers a 404 error code if a page doesn't exist.
当设备可能不存在时,DSF特别有助于执行设备驱动程序内核代码。
DSF is especially helpful in executing device driver kernel code where the device may not be present.
与之相反的是,在最近的时期内,我会检索所有代码,而这些地方框架是完全不存在的。
Conversely, I do not recall noting such a culture where these frameworks were entirely absent, in recent times.
这个选项不存在与较老CPU不兼容的问题,但专门针对不同cpu调优的代码执行起来可能较慢。
This option will not introduce incompatibility with older CPUs, but code tuned for a different CPU might execute more slowly.
创建流程在创建单一树的代码时不存在依赖问题,且也不会影响其结构。
Build processes that work with code from a single tree have no problem with the dependencies and do nothing to discourage their construction.
如果该表不存在,则它调用数据库初始化代码ResourcesDatabaseInitializer,该代码在此示例中是初始化数据库的实用程序类。
If the table doesn't exist, it invokes the database initialization code, ResourcesDatabaseInitializer, which in this example is a utility class that initializes the database.
以下的示例代码假设表的customer不存在,并且已经在数据库中注册了该customer模式。
The example assumes that the table customer does not exists and the customer schema is already registered in the database.
与它们的区别则是,JRuby的类库一般来说块头都非常小,目前在Profligacy的例子里只有200行代码,并且还不存在对第三方类库的依赖。
The difference to them is that the JRuby libraries are generally quite small, in the case of Profligacy currently 200 lines of code, with no 3rd party dependencies.
虽然这个条件在GPLv3的正文中不存在,但是开发人员可以将GPLv3的代码与Affero代码相结合,而Affero条款将应用于整个产品。
While this requirement does not exist in the text of GPLv3, developers can combine GPLv3 code and Affero code, and the Affero provisions will apply to the whole work.
该代码是从MySQL导出的(其他RDBMS请自行调整),如果不存在表格,该代码将创建一个。
In this code, which was exported from MySQL (make your own adjustments for other RDBMSs), the table is created if it does not already exist.
在审核完代码后,OpenBSD的创建者TheodeRaadt得出如下结论:在这个开源操作系统中并不存在这种威胁。
After auditing the code, Theo DE Raadt, the founder of OpenBSD, has concluded that there are no such threats in the open source operating system.
在审核完代码后,OpenBSD的创建者TheodeRaadt得出如下结论:在这个开源操作系统中并不存在这种威胁。
After auditing the code, Theo DE Raadt, the founder of OpenBSD, has concluded that there are no such threats in the open source operating system.
应用推荐