This is an example of defensive programming.
这是一个防御编程的实例。
Design by Contract, or defensive programming.
契约式设计或防御性编程。
In this case, defensive programming seems to have done the trick.
在本例中,防御性编程似乎解决了问题。
Object verification is a classic defensive programming strategy for dealing with uncertainty.
对象验证是处理不确定性的一项经典的防御性编程策略。
The other way is a bit of what's called "defensive programming." We simply change the cookie check to look like this.
另一种方式有点像“防御性编程”。
Have you heard about defensive programming?
你有听说过防御式编程吗?
For this type of problem, developers often employ defensive programming techniques that aim to catch potential errors before they wreak havoc.
对于这类问题,开发人员通常会使用防御性编程技术,该技术专门用来在发生摧毁性后果前捕捉潜在错误。
Find out what happens when you combine defensive programming, design by contract, and an easy-to-use generic validation framework called OVal.
尝试为应用程序整合进防御性编程、契约式设计和一种叫做OVal的易用的通用验证框架。
Those familiar with aspect oriented programming, or AOP, will recognize this as a crosscutting concern, meaning that defensive programming techniques span horizontally across a code base.
熟悉面向方面编程(或AOP)的人们会把它认为是横切关注点,这意味着防御性编程技术横跨了代码库。
Defensive programming is all about having assertions at the right place in your code.
防御性编程与让断言位于您代码中的正确位置密切相关。
Defensive programming techniques are used especially when a piece of software could be misused.
尤其是当一个软件可能被滥用时,可以使用防御性编程技术。
Defensive Programming: your code must not make assumptions about anything received over the network.
防御性编程:你的代码绝对不能对通过网络接收到的任何信息做出假设。
Defensive programming constructs have prevented many a defect, but the constructs themselves tend to litter code with repetitive logic.
防御性编程结构阻止了一个又一个缺陷,但这些结构本身却不免为代码添加了重复的逻辑。
Defensive programming constructs have prevented many a defect, but the constructs themselves tend to litter code with repetitive logic.
防御性编程结构阻止了一个又一个缺陷,但这些结构本身却不免为代码添加了重复的逻辑。
应用推荐