This is an example of defensive programming.
这是一个防御编程的实例。
Design by Contract, or defensive programming.
契约式设计或防御性编程。
Have you heard about defensive programming?
你有听说过防御式编程吗?
In this case, defensive programming seems to have done the trick.
在本例中,防御性编程似乎解决了问题。
But here's where I'm going to practice a little bit of defensive programming.
但是这儿我们要把编程的,防御性做的好一些。
Defensive programming is all about having assertions at the right place in your code.
防御性编程与让断言位于您代码中的正确位置密切相关。
Object verification is a classic defensive programming strategy for dealing with uncertainty.
对象验证是处理不确定性的一项经典的防御性编程策略。
Defensive programming techniques are used especially when a piece of software could be misused.
尤其是当一个软件可能被滥用时,可以使用防御性编程技术。
Immutable collections, for defensive programming, constant collections, and improved efficiency.
不可变集合:防御性编程、不变集合、以及会提升性能。
Defensive Programming: your code must not make assumptions about anything received over the network.
防御性编程:你的代码绝对不能对通过网络接收到的任何信息做出假设。
The other way is a bit of what's called "defensive programming." We simply change the cookie check to look like this.
另一种方式有点像“防御性编程”。
Defensive programming constructs have prevented many a defect, but the constructs themselves tend to litter code with repetitive logic.
防御性编程结构阻止了一个又一个缺陷,但这些结构本身却不免为代码添加了重复的逻辑。
As every time we introduce a new programming concept, we'll relate it back, as we have been doing consistently, to 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的易用的通用验证框架。
The next column covers defensive programming techniques (in C), and explains why certain system calls are problematic and what to do instead.
下一专栏将涉及防范的程式化技巧(用C),并说明为什麽某些系统呼叫容易出问题以及应如何解决。
It also explains the difference between programming by contract and defensive programming with a clever situation where your customers request that the framework code do the checking.
该书还阐述了在客户请求框架代码进行检查的智能情况下,承包程序设计和防错性程序设计之间的差别。
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)的人们会把它认为是横切关注点,这意味着防御性编程技术横跨了代码库。
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)的人们会把它认为是横切关注点,这意味着防御性编程技术横跨了代码库。
应用推荐