如果我们拥有的代码在执行中使用一个具体的类该怎么办?
What if the code we have uses a concrete class in its implementation?
在我们签入我们代码的同时,软件仓库会自动构建所有的应用程序,然后对它们运行单元测试。
As soon as we checked in our code, the repository would automatically build all of the applications and run the unit tests against them.
使用渐进增强,我们在可用代码的基础上构建站点。
With progressive enhancement, we build sites on a foundation of usable code.
可以料到,这会给难于理解为什么他们的代码无法在我们的产品上运行的客户带来很大麻烦。
As might be expected, this caused much grief with the customer who had difficulty understanding why their code would not run on our product.
这一步很重要,因为在示例代码中我们将创建拥有该组件的新内容。
This step is very important because in our sample code, we will create new content that has this HTML component.
遗憾的是,彻底放弃私有继承和多重继承会使我们在代码重用方面付出昂贵的代价。
Unfortunately, tossing out private and multiple inheritance has cost us dearly in terms of code reuse.
有时我们通过在写任何代码之前进行学习来执行工具的评估。
Sometimes we'd perform tool evaluations through studies before writing any code.
但是,在AOP中,仅仅通过代码查看,我们不再能够进行推论。
With AOP, however, we can no longer reason about a class just by looking at the code for it.
也许内核开发社区也应该重新评估,我们在代码质量和市场成功两者之间到底如何权衡取舍。他问道,我们是否需要一套更面向商业的制度?
Maybe the community needs to reevaluate how it weighs code quality against market success; do we, he asked, need a more commercially-oriented metric?
在代码中,我们反转了数组来设置 $wheel2。
值得强调的是,瓶颈是我们在定制代码中实现解决方案的方法所导致的,因此,这不完全是RationalPerformance Tester的问题。
It is worth emphasizing that the bottleneck is a result of the way that we implemented the solution in Custom Code; therefore, it is not entirely a Rational Performance Tester problem.
请注意,我们在代码中使用了如下XDIME元素。
Note that we've used the following XDIME elements in the code.
注意,jQuery代码是在我们的controller上调用JSON方法。
Notice this jQuery code is calling a JSON method at the location of our controller.
对象与闭包可以很好地结合使用,比如我们在面向对象的代码内对闭包的特殊处理。
Objects and closures get along very well, as we saw by the special handling of closures within object-oriented code.
我们甚至在试验代码中用了四年之后还很少在生产代码中使用它们。
We have rarely used them for production code, even after four years of usage in experimental code.
我们在调试代码中构建了一些死锁检测逻辑——例如,检测和报告分层违规的逻辑。
As part of our debug code, we built in some deadlock detection logic — for example, logic that detects and reports layering violations.
这允许我们在崩溃或代码更新之后,远程地(重新)启动显示服务器。
This allowed us to remotely (re) start the display servers after a crash or code update.
在开始研究代码细节之前,让我们先来了解一下这个应用程序的目标。
Before jumping into the specifics of the code, let's have a look at the application's goals.
模式和代码互相协调,我们仍然关注在代码上……我们说:我们正在用不同的方式做事。
Patterns and code go together, and we were still focusing on the code... we said: we are doing things differently.
在示例代码中,我们再次计算加权平均数,但是感兴趣的读者很容易就能看出来,其实在聚集信息中完全可以加入复杂得多的结构。
In our sample code, we compute again the weighted average, but the interested reader can easily see that a much more complex structure could be to store the aggregation information.
所有在大括号里面的代码都由我们自己编写。
Everything inside of the curly braces is the code I am writing.
在清理代码的时候,我们为之付出的努力只有在将来才能受益。
When we clean up the code, the cleanup we make will only pay off at some future time.
在我们的测试中,源代码得到了适当的变换,但是有些数据值不能够被完全填充。
In our test, the source code was appropriately converted, but some of the data values weren't fully populated.
我们大约需要编写50行代码来真正执行我们在模拟对象类中所需的行为。
We had to write approximately 50 lines of code that actually implemented the behavior we needed in our mock object classes.
所以我们植入了一些错误校验,如果你愿意,在我们的执行代码里。
So we've embedded some error checking, if you will, into our implementations.
在查看代码之前,我们先介绍基础的场景,我们在该场景中扮演一个调查中心,负责研究公众喜欢的图书、电影、歌曲和站点的品味。
Before looking at the code, let us introduce our basic scenario, in which we, as an example, are a survey center, specializing in public tastes of favorite books, movies, songs, and sites.
我们可以决定是在源代码中实现所有的功能,还是在运行时使用调试器来修改这些参数。
You can decide whether to implement everything in the source code or to change the parameters during runtime using the debugger.
文档为我们在源代码中查找东西提供了一个起点。
The documentation gives us a starting place for finding things in the source code.
在本文后面,我们还将编写代码来在需要的时候逐个启用和禁用这些选项卡。
Later on, you'll write code to enable the disabled tabs one at a time when they're needed.
在我们在不断重构我们的代码来解决兼容性问题,并尝试效率更高的方式的时候,我们也发现ABAP工具缺乏对重构的支持。
As we are constantly refactoring our code to fix compatibility issues or try better performing ways, we also experience that ABAP tools lack support for refactoring.
应用推荐