At first this seemed to indicate a lack of value in the code reviews, so the project engineer looked into things a little more carefully. Here's what he discovered.
最初这看起来显示了一种在代码评审价值的缺乏,因此项目工程师们并不是非常认真的检查每一件事情。
I hope this article has gotten you to think about the value of clean code in your systems.
我希望这篇文章已经让您开始考虑干净代码对您系统的重要性。
Once you find the line of code in question, determine the value of the variables in that method, how the method was called, and specifically why the error occurred.
一旦您发现了代码中出错的行,请确定该方法中变量的值、方法被调用的方式以及关于错误如何发生的详细情况。
In this case, I need a true value; the simplest way I can make this happen is by adding the code in code Sample 4.
在这种情况下,我需要真实值,要做到这些的最简单的方法是加入代码示例4中的代码。
NB - If the system tries to post to a dimension code that is not available (due to linked structure, etc) it will default to Posting value to the first available code in the dimension list.
注意:如果系统试图指派一个不可用的维度码(由于链接的结构,等),它会默认将值指派给维度列表中第一个可用的代码。
The code passes the string value of what the control is referenced as in this local Web page so that the controller object can reference that when it renders the view objects.
代码传递在此局部网页中引用的控件的字符串值,以便在其显示视图对象时控制器对象可以引用该值。
This way, you can modify the number or string literal in just one place (the value of the field), instead of doing a search and replace throughout your code.
这样,在一个位置(字段的值)就可以实现对所有数字或字符串文字的修改,再也无需在整篇代码中执行查询和替代了。
A method is called in that code when a property value changes and when the property is properly wired to the actions component.
属性值发生更改时、属性被适当地连接到操作组件时,将在这段代码中调用方法。
In one example, 16 lines of code were used to check the value of an attribute.
在某个示例中,使用16行代码检查一个属性的值。
SeenGuardClauseAt: the value of the program counter when the logging guard clause is discovered in the analyzed code.
seenGuardClauseAt:在所分析的代码中发现日志监护子句时,程序计数器的值。
The code in Listing 9 first alerts the original value of the text input control from the Flex application.
清单9中的代码将首先警告Flex应用程序中的文本输入控件的初始值。
Taking the same example as above — that of retrieving the value of the insured vehicle model in automobile-policy.xml — the code snippet in Listing 6 should do the trick.
我们仍然使用上述从automobile - policy . xml中检索已保险车辆型号的例子,清单6中的代码片段就能够完成这项工作。
In Linux, the same semget call is used to open the semaphore with 0 as the value for the semflg: int semget (key, nsems, 0). In this code.
在Linux中,可以调用相同的semget来打开某个信号量,不过此时semflg的值为0:int semget (key,nsems, 0)。
The Exact Expected code value is the response code that will be verified in the response.
ExactExpectedcode值是将在响应中验证的响应代码。
Use the code in Listing 6 for this portlet and change the value of the VIEW_JSP variable to OrdersDetailsPortletView.jsp. The code for this JSP is in Listing 8.
对这个portlet使用清单6中的代码,并把VIEW_JSP变量的值改成OrdersDetailsPortletView .jsp。
Use the code in Listing 6 for this portlet and change the value of the VIEW_JSP variable to CustomerDetailsPortletView.jsp. The code for this JSP is in Listing 9.
对这个portlet使用清单6中的代码,并把VIEW_JSP变量的值改成CustomerDetailsPortletView . jsp。
Many APIs that expect explicit constants or 'magic values' are part of an API contract and not merely some value added in to the code.
需要显式常量或是“魔力值”的很多API都是API契约的一部分,这些常量或数值并不只是随意添加到代码中的(这里的意思指的是很多API中都拥有一些常量或是数值,他们是API契约所要求的,因此根据反编译后的结果很难推测出这些常量或数值所代表的含义——译者注)。
It does have some limitations on value and key lengths, but those are easily adjustable in the code.
它确实对于值和键长度有一些限制,但可以在代码中轻松地调整那些限制。
The code in the method then USES the items array to look up the value and returns it as if there had been a member variable there for that keyword, in particular.
然后,方法中的代码将使用项阵列来查找值并返回该值,就像有一个专门用于该关键字的成员变量在那儿一样。
If you return a null array, the clients of the code must write extra code to check whether the return value is null (as shown in Listing 13).
如果您返回零数组,该代码的客户端必须编写额外的代码来检查返回值是否为零(如清单13所示)。
The real value of this particular column isn't in esoteric code, but simply in communicating a clear notion of the target you should have for enabling your own remote service.
这篇特别的专栏文章的真正价值并不在于深奥的代码,而只是在于传达了一个清晰的概念,您应该以此为目标来启用自己的远程服务。
With each project, a developer must now think about how he/she can package his/her code to be of value to the company in the future.
对于每个项目,开发人员都必须现在考虑如何对其代码进行打包,以在将来为公司提供价值。
I'll continue with the generic-validator implementation in the next section, where you'll really begin to see the value of reusable and reconfigurable code.
在下一节中,我会继续采用通用验证器的实现,在那里您会真正开始发现可重用和可配置代码的价值。
Substitute the second currency type value in the recording (USD) with custom code from SAMPLE_VAR2.
将记录(usd)中第二个货币类型值替换为来自SAMPLE_VAR2的定制代码。
You can retrieve this value by using the code in Listing 1.
您可以通过使用如列表1所示的报头来获取该值。
In the code show in Listing 6, the default value is derived from an EJB environment variable set in the deployment descriptor of the EJB module containing the MDB.
在清单6所示的代码中,缺省值派生自一个EJB环境变量,该变量是在包含MDB的EJB模块的部署描述符中设置的。
When you execute the code in Listing 4, the result is the atomic value of one node.
执行清单4的代码后,结果得到的是一个节点的原子值。
The code shown in Listing 2 demonstrates how to modify the transformation logic depending on the value of the format field in the MQMD.
清单2中所示的代码说明了如何根据MQMD中格式字段的值修改转换逻辑。
When you execute the code in Listing 3, the result is an array output of the value of each NAME node of the XML tree.
若执行清单3中的代码,结果得到的是此xml树中每个name节点值的数组输出。
In the demo code, as usual, the label value is pulled from the resource bundle.
在demo代码中,和通常一样,label的值是从资源包中提取的。
应用推荐