这能简化代码,如清单8中所示。
使用服务定位器设计模式来简化代码。
Use of the service locator design pattern to simplify lookup code.
整体上来说,JET的用途不仅限于简化代码生成。
On the whole, JET can be used for more than just simple code generation.
闭包能够大大简化代码的另一个地方是泛化算法的使用。
Another place where closures offer an opportunity to dramatically simplify code is in the use of generic algorithms.
这看起来不是什么大事,但确实能够简化代码。
This may not seem like a huge deal, but it certainly simplifies your code.
按照与代码相同的方式构造模型可以极大地简化代码模板。
Structuring the model the same way as the code can greatly simplify the code templates.
通过用匿名函数来替换正式函数定义,您可简化代码。
By replacing formal function definitions with anonymous functions, you simplify code.
OpenNTF联盟希望尽可能简化代码在各种用途下的重用。
The OpenNTF Alliance wants to make the code as easy to reuse as possible for all purposes.
在周三我在那个网站上尽可能地,简化代码的时候,我有点偷懒。
I was being a little lazy on Wednesday in the interest of simplifying the code as much as possible.
可以打开相应模块或一个或多个命名空间以简化代码。
You can open the module or one or more of the namespaces to simplify the code.
我们可以看到强大的jQuery选择器是如何简化代码的。
You can see how the power of jQuery selectors can simplify your code.
要理解对代码的读取操作要远比写入操作多,因此简化代码很重要。
Understand that code is read far more than it is written, so simplifying code is important.
要简化代码,请分配通过REST联合检索的相同状态代码的图标。
To simplify the code, assign the ICONS the same status code retrieved by the REST syndication.
不过,用任何语言反简化代码的最快方式都是一次编写大量的代码。
The quickest way to de-simplify your code in any language, however, is to write too much of it at once.
但是,如果希望简化代码的开发和调试,可能需要一个IDE(集成开发环境)。
But if you want to make your life easier in developing and debugging your code, you probably need an IDE (Integrated Development Environment).
Schematron的很多思想受到XSLT的启发,包括使用变量简化代码。
Schematron was inspired by many of the ideas in XSLT, including the use of variables to help simplify code.
通过使用样式表来定义一个与带特定原型的元素相匹配的模板,可以进一步简化代码。
By using a style sheet to define a template that matches an element with a particular archetype, you can further simplify the code.
如果代码非常混乱以致于需要逐行注释,那么更有利的方式是首先简化代码。
And if your code is such a tangle that you need a comment for every single line of it, you'd probably profit from making it simpler in other ways first.
在最后一行,我们使用了一个object而不是一个class来简化代码。
On the last line, using an object rather than a class simplifies the code.
考虑到这些相似性,Rails3引入了Responder来进一步简化代码。
Given those similarities, Rails 3 introduces the Responder to simplify the code further. For example, a few lines of code is all that's needed for a create action.
ReSharper提供许多简化代码任务的快捷方式以提高你的生产力和节省你的时间。
ReSharper offers a number of shortcuts for streamlining common coding tasks to increase your productivity and save your time.
一些读者曾问我如何以更好的方式组织CSS文件来改善代码的可读性并简化代码的管理。
Some readers have asked to me what is the better way to organize a CSS file to optimize code readability and simplify code management.
好的设计可以在我们更深入理解业务流程时,简化代码修改,并为创建UI需要的价值提供更多的选择。
A good design lets us change our code easily as we find out more about the business processes, giving us multiple options for providing the value that the UI needs.
最后,SOA方法允许我们轻易绕过Torque引擎的一些很麻烦的限制,同时能够简化代码。
Finally, the SOA approach allowed us to easily get around some of the more troublesome limitations of the Torque engine, while simplifying the code.
您将看到,有时候通过改变抽象风格,可以解决一些看似难以解决的设计问题,并且可以简化代码。
And you'll see that you can sometimes solve seemingly intractable design problems - and simplify your code - by changing abstraction styles.
不过,虽然Web服务基础结构可以封装调用的细节,从而简化代码,但服务设计也应对调用方式加以考虑。
However, although the Web service infrastructure may encapsulate details of invocation and hence simplify code, the service design should be influenced by the style of invocation.
尤其是其中的“测试先行”,以不断的测试推动代码的开发,从而达到既简化代码,又保证质量的目标。
It especially highlights the test first policy-uninterrupted test propels code exploitation, thus achieves the goal of code simplicity and at the same time quality assurance.
对于那些需要处理SOAPElement本身而不是使用数据对象的场合,使用这些API可以在一定程度上简化代码。
Using them does simplify the code a bit for the cases where you'll need to handle the SOAPElements themselves instead of working with your data objects.
jQuery最有趣的特性之一是 “链接性”,它能够将一系列函数集中起来,改善可读性和简化代码的编写。
One of the most interesting features of jQuery is its "chainability", its ability to put together a series of functions in order to improve readability and ease coding.
它使用了依赖注入技术以简化代码来实现Presentation -Model和Model - View - Presenter模式。
It USES dependency injection techniques to simplify the code necessary to implement the Presentation Model and Model-View-Presenter patterns.
应用推荐