This essay in praise of chess and prescribing a code of behavior for it has been widely reprinted and translated.
本文在赞扬国际象棋和处方守则的行为已被广泛转载和翻译。
But unlike other sports, the rules of golf not only dictate the rules of the game, they actually prescribe a code of behavior and ethics for our athletes.
但是与其他运动项目不同,高尔夫球的规则不仅仅决定高尔夫球的运动规则,实际上它为运动员制定了一整套的行为和道德规范。
The basic concept of test-driven development is that before writing project code, you write a simple piece of code that tests your hypothetical project code for desired behavior.
测试驱动开发的基本概念是,在写项目代码之前,你写一段简单的代码来测试你假设的项目代码,以获得预期的反应。
A mock object conforms to the interface of the real object, but has just enough code to fool the tested object and track its behavior.
模仿对象符合实际对象的接口,但只要有足够的代码来“欺骗”测试对象并跟踪其行为。
If you're like many programmers who aren't fond of commenting code, unit tests are a way of documenting your code behavior.
如果您像其他许多程序员一样不喜欢为代码加注,则单元测试是记录代码行为的一种方法。
The idea behind class wrapping is that a target class can be wrapped in a layer of instrumenting code that retains the same external behavior as the class that's wrapped.
类包装背后的理念是:目标类可以包装在一层插装代码中,后者具有与被包装的类相同的外部行为。
The code in Listing 3 correctly emulates the behavior of Listing 1, while using a couple of EXSLT functions to solve the problems I've described.
清单3中的代码完全模仿了清单1的行为,并使用两个 EXSLT函数解决了上述的问题。
Properties can be used to change the behavior of a component at run time without making code changes.
属性用于在运行时更改组件行为,不用更改代码。
Another possibility is that some new code might have introduced a change in behavior that is leaving a large section of the product untested.
另一个可能性是新的代码可能引入了一些行为变更。
Customize behavior of generated code using a Hook for specialized pre - and post - data access processing.
要对数据访问进行预处理和后处理,使用Hook定制生成的代码的行为。
Refactoring [Fowler] is a process of modifying code to improve quality without necessarily adding new behavior.
重组[Fowler]是不必增加新行为而修改代码以提高其质量的过程。
Groovy also implements the handy default behavior of automatically supplying a parameter for your iteration named it, which you can reference within the code block.
Groovy还实现了方便的默认行为,为名为it的迭代自动提供参数,您可以在代码块中引用。
If you look at the code, this is made up entirely of static methods, so it could have also been written as a series of functions without changing the extension's behavior.
如果仔细看一下此代码,就会发现这完全由静态方法组成,所以它也可以在无需更改扩展行为的情况下作为一系列函数编写。
Resources that are separate from the application code and allow your application to gracefully optimize its behavior for a variety of device configurations.
与应用代码分离的资源,它能让你的应用通过各种设备配置优雅的优化其行为。
In contrast, customization requires the development of additional code (in a programming language) to extend and change a software component in order to support a specific a "custom" behavior.
相反,自定义要求开发额外的代码(使用编程语言)来扩展和更改软件组件,以支持特定的“自定义”行为。
Using descriptive HTML elements with default behavior saves a lot of time writing JavaScript code to simulate the behavior with general-purpose DIVs.
使用默认行为的描述性html元素可以避免用大量代码模拟通用DIV的行为。
According to the "astronaut Code of Professional Responsibility," astronauts are expected to adhere to "a constant commitment to honorable behavior," but NASA won't go much further than that.
《宇航员职业责任守则》规定,宇航员应该时刻谨记对“光荣行事的承诺”,但是NASA不会做更严格具体的要求。
Although the code doesn't focus on extracting regular expressions from a ResourceBundle, it does include a good example of extending the default behavior of the formatted text field.
虽然其中的代码不是着重于从ResourceBundle提取正则表达式,但是它的确包含了一个扩展格式化文本域的默认行为的好例子。
We did not need to write a single line of code to enable this layout behavior - the Grid container and the layout system took care of dynamically resizing and flowing everything for us.
我们不需要编写一行代码就可以启用这个布局行为,Grid容器和布局系统会为我们自动调整大小或流动其中的任何东西。
While code coverage is a quite good metric, it can be misleading. Even if your tests cover 100% of your code, they may not actually test each behavior correctly.
但是,代码覆盖率这个指标有时也会产生误导,因为即使全部的代码都被测试到了,也未必说明这些代码所得到的运行结果是正确的。
UC Berkeley's Barth notes that Ripley is part of a larger trend in solutions that protect the integrity of client-side code by assuring that no unauthorized behavior can occur.
UCBerkeley的Barth注意到,Ripley是当前解决客户端代码完整性,以保证没有非授权操作执行的解决方案发展趋势中的一部分。
The group may provide guidelines for behavior such as a professional ethic or a code of conduct.
这个团体可能会提供像职业道德或行为准则这样的行为指导。
The Command design pattern provides a way to encapsulate behavior in a class with well-known execution semantics. Listing 4 shows the result of applying these two patterns to the code in Listing 3.
公共设计模式提供了利用常规执行语句来在类中封装行为的方法。
If a written code of conduct does not exist, the management culture emphasizes the importance of integrity and ethical behavior.
如果没有可以执行的成文法案,管理文化强调道德标准与行为约束的重要性。
A set of custom scripting files that contain programming code used to implement specific editing behavior, data validation, event handlers, and control of data flow.
一组自定义的脚本文件,包含用来实现特定的编辑行为、数据验证、事件处理程序和数据流控制的编程代码。
Refactoring is the process of rewriting a piece of code so as to leave its execution behavior intact, but improve it in some other way.
重写一段代码保留其运行的外部特性,但在某些方面有所改进,这样的过程称之为重构。
Static analysis of software consists of inferring the behavior of a piece of code from its instructions.
静态分析的软件组成,推断出的一段从其指令的代码的行为。
Reporters, editors and the entire journalist community are expected to observe the Code of Ethics of Professional Journalists, share a dedication to ethical behavior and commitment to objectivity.
所有记者,编辑和整个新闻从业者团体都被预期会遵守职业记者的道德准则,共同致力于合乎道德的行为和承诺客观性的报导。
On the study of malicious code, the automatic generation of malicious behavior speciation is still a difficult problem.
在对恶意代码的研究上,恶意行为规范的自动生成仍然是一个难题。
On the study of malicious code, the automatic generation of malicious behavior speciation is still a difficult problem.
在对恶意代码的研究上,恶意行为规范的自动生成仍然是一个难题。
应用推荐