To understand how to achieve full hot code fixing, you need to understand the workings of the environment.
为了理解如何实现完全的紧急代码修复,您需要了解环境的工作方式。
The MMI is a highly effective interpreter, hand crafted in assembly code of a host platform to achieve best possible optimizations.
MMI是一个非常有效的解释器,利用宿主平台上的程序集代码来达到最优的优化。
Full coverage was very expensive and difficult to achieve, because we had to hand-inspect our code to determine which lines were and were not hit by the test.
完全的覆盖是非常昂贵的并且很难达到,因为我们必须要手工的检查我们的代码以确定哪一行代码没有被测试覆盖到。
This strategy allows powerful code refactoring tools, which are much more difficult to achieve using the same methods for statically typed languages.
这一策略允许使用强大的代码重构工具,而使用静态类型语言的同样方法来实现此功能则困难得多。
Now the code is down to three lines, almost all of it expressing some important aspect of the result we are trying to achieve.
现在代码缩减为三行,几乎所有代码都表示了我们试图实现的结果的某个重要方面。
To achieve this, you need a way to recognize generated versus user-defined code; placing markers in the code is one approach.
为了实现这一点,你需要一种方法来识别出被产生的用户定义的代码;在代码中放置标记就是一种方法。
The wiser way is to define functions only when you need to use the code multiple times and there are no PHP built-ins for the task you want to achieve.
更明智的方法是,仅在需要多次使用代码,并且对于您希望实现的任务没有可用的内置php函数时才定义函数。
Apply these practices diligently to increase the likelihood that your JNI code is correct and that your application can achieve the performance levels it requires.
坚持应用这些实践有助于提高JNI代码的正确率,并且您的应用程序可以实现所需的性能水平。
The important point is that adopting TFP guarantees that you will achieve a significant amount of code coverage in your unit tests -- probably far more than what you achieve today.
重点是,采用TFP 可以确保您在单元测试中实现相当大的代码覆盖率——可能远远超过我今天所达到的。
Fortunately, you can achieve this simply and without writing any code at all by using the extension points provided by the static analysis framework. This is known as a Rule Set.
幸运的是,您可以通过使用由静态分析框架提供的扩展点来轻松地实现它,而且不需要编写任何代码。
The number of calls to the objects and the number of lines of code that must be execute to achieve the desired result gives us an idea of the serious processing required to achieve the desired result.
对于这些对象的调用数目,以及为取得期望结果必须执行的代码行数,让我们了解要取得期望结果需要进行多么重大的处理。
For instance, you could use the code in Listing 14 to achieve an effect similar to that shown in Listing 13; this time, all CDs are iterated over, and a Boolean XPath expression is applied.
比如,可使用清单14中的代码来实现和清单13类似的效果,这一次在迭代全部CD的过程中使用了xpath布尔表达式。
You can achieve some code separation if you represent the concrete Customer Persistence class as an interface instead.
如果换用接口来表示Customerpersistence类,可以实现一些代码分离。
You can achieve this goal by looking at the part of web services you have control over: the bit of code that does all the magic.
您可以通过查看您已经控制的Web服务部分(具有特殊功效的代码位)来达到这个目标。
If our tests are to achieve good code coverage, then we must be able to control the result of human tasks. Hence, the need for the following requirement.
如果我们的测试是为了实现较好的代码覆盖,那么必须能够控制人工任务的结果。
On the other hand, they achieve more code coverage than unit tests do because of their wide reach.
另一方面,由于其宽广的范围,它们实现了比单元测试更广的代码覆盖率。
The distro uses all open-source components, which is a good thing, but means it can be more difficult to achieve compatibility with proprietary code such as wireless network drivers.
这个发行版只使用开源组件,这是个好消息,但是这也意味着要获得和专利代码(例如无线网络驱动)的良好兼容性会更加困难。
You will have thought through the design before simply coding away, which reduces the amount of code written to achieve the goal of the unit test.
如果在开始编写代码前先对设计进行全面细致的考虑,也能减少您为实现单元测试的目的而需要编写的代码量。
The first step is to do a careful analysis of the implementation code and identify areas where it might be tuned to achieve better performance.
第一步要对实现代码进行仔细的分析,并确定可以对哪些方面进行调整以实现更佳的性能。
At the same time, EGL helps development teams achieve the highest levels of productivity by enabling them to create code once and deploying it anywhere within their it environment.
与此同时,EGL通过使开发团队一次生成代码并在IT环境中任何位置进行部署来帮助开发团队实现最高级的生产力。
Listing 4 shows the essential code required to achieve this.
清单4中显示了要实现这种功能的必要代码。
In order to achieve that there should be a mechanism to transparently inject services into domain objects, no matter where in the code they are instantiated.
为了达成这一目标,需要一种透明的机制将服务注入到领域对象中,不管对象在何处实例化都该如此。
In order for MDD to achieve comparable improvements in development productivity, it must incorporate the same level of automation; models must be automatically translatable into executable code.
为了让MDD在开发生产力方面达到相应的提高,它必须结合相同级别的自动化,模型必须是可自动地翻译为可执行代码的。
The code was loaded with tables and small spacer images to achieve the desired layout.
代码是和表及小的间隔图片一起装入的,目的是得到所需布局。
If performance is very important for a certain JSP and you cannot achieve your goals with generated code, consider writing the markup into the output stream by yourself.
如果性能对于特定JSP非常重要,而使用生成的代码又不能达到目的,请考虑手动将标记编写到输出流中。
This can identify areas of the project that achieve less coverage over time, to show where testing needs to expand in line with code changes and added features.
这样可以识别在项目整个运行时间中覆盖较少范围的区域,可以显示测试的什么位置需要按行展开有代码变更和增添新特征的区域。
Whatever your purpose, whole blocks of commented code are not the best way to achieve it.
不管你的目的是什么,注释代码都不是个好主意。
The service functions properly but, because of problems with the code generation tools, fails to achieve the primary goal of Web services; interoperability.
服务运行正常,不过由于编码生成工具存在一些问题,所以达不到Web服务的基本目标:互操作性。
In fact, you must dust off UML's obscure Object Constraint Language (OCL) and an OCL code generator to achieve the same functionality.
事实上,您必须通过uml晦涩的对象约束语言(Object Constraint Language,OCL),并使用OCL代码生成器,才能实现相同的功能。
I also included four color properties and a Radius variable which can be used in the painting code to achieve a nice look and feel.
我还包括四个颜色属性和一个半径变量,可以在画的代码用来实现一个不错的外观和感觉。
应用推荐