一段优秀设计的代码,经错一些微小的、可逆的改变,使得它完全不能被除了你自己之外的任何人维护,这样一个处理过程。
The process of taking a well-designed piece of code and,through a series of small, reversible changes, making it completelyunmaintainable by anyone except yourself.
如果我接受了一段恶意代码,其破坏了我的计算机,那又是谁的错呢?
If I accept a malicious piece of code that wreaks havoc on my computer, whose fault is it?
该书还阐述了在客户请求框架代码进行检查的智能情况下,承包程序设计和防错性程序设计之间的差别。
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.
这样就可以更容易地发现代码中的问题(例如输错的变量名)。
This makes it much easier to find problems in the code (such as mis-typed variable names).
可以使用适当的API,甚至适当的Collection来修正很多易错的代码。
You can fix a lot of error prone code with the right API, or even the right Collection.
如果哪儿出了错,您总是可以使自己的代码回复到一个已知的、工作正常的版本。
If something goes wrong, you can always revert back to a known, good-working version of your code.
第三,在现有的代码上什么都可以错;这不是必要的,只是不错的。
Third, it is nothing that you cannot do already with existing code; it's not necessary, it's just nice.
它不断增长的可用重构和代码生成功能集合允许您在更高的级别上操作代码,并自动化通常的代码密集型任务和易错任务。
Its ever-growing set of available refactorings and code-generation functions allow you to manipulate your code at a higher level and automate often coding-intensive and error-prone tasks.
精细设计的函数会对很多程序都有用处。一旦你写好了并且除了错,这种函数代码可以再利用。
Well-designed functions are often useful for many programs. Once you write and debug one, you can reuse it.
当计算结果依赖于两个或更多进程被调度的顺序,我们说这段代码是错的,这种情况被称为竞态条件,也叫竞态或竞争。
When the outcome of some computation depends on how two or more processes are scheduled, the code is incorrect. We say that there is a race condition.
检测代码错。
现在,当你看着你的代码示例,您可以很容易地看到什么是失踪,你错在哪儿了。
Now when you look at your code example, you can easily see what is missing and where you go wrong.
如果你相信我是错的,你可以给我参考规则的ADCVD之内,或uscpd代码,IIUS有关立即交货付款取信中吗?
If you believe me to be wrong could you give me the reference within the rules of the ADCVD, IIUS, or USCPD code pertaining to immediate delivery via cod?
但因为我犯错,那么我还必须假定在代码内试着找错时也会犯错。
But because I make mistakes, then I must also assume that I make mistakes trying to identify the mistakes in the code.
独有自动侦错功能,代码报告故障的情形,可轻松解决问题无须烦琐的侦错过程。
Unique function for automatic detective and reporting the error, it could easy to solve the problem of the machine.
独有自动侦错功能,代码报告故障的情形,可轻松解决问题无须烦琐的侦错过程。
Unique function for automatic detective and reporting the error, it could easy to solve the problem of the machine.
应用推荐