But often the boilerplate code isn't so pretty.
但是通常来说,这些样板代码并不会如此精美。
This class is mostly boilerplate code, not directly relevant to Comet.
这个类基本上是样板代码,与 Comet没有直接的关系。
Lombok has a clever solution to the boilerplate code problem, however.
然而,Lombok有一个很智能的方法来解决样板代码问题。
Obtaining a simple reference to an EJB involved a lot of boilerplate code.
为了获得一个简单的EJB引用,就需要许多样板代码。
JPA has made this task easier, but still requires a lot of boilerplate code.
JPA让持久化变得非常容易,但是仍然需要编写很多模板代码。
These two methods remove a lot of boilerplate code in most Web applications.
这两个方法减少了很多Web应用程序中的样板代码。
Most of this is just boilerplate code: several fields with getters and setters.
这段代码的大部分都是样本文件代码:几个字段和一些 getter 和 setter 方法。
We can now create new forms based on our boilerplate code by doing the following
现在,就可以使用以下代码根据样板代码创建新表单
That's useful, but at times you may also want to generate your own boilerplate code.
这个很有用,但有时您还需要生成自己的样本代码。
In order to use this inside Equinox and Felix, we need to put in some boilerplate code.
为了在Equinox和Felix里面使用这一服务,我们需要放一些样板代码进去。
Increase the productivity of software engineers by abstracting from low-level boilerplate code.
从低层次的重复代码中抽象出来,提高软件工程的生产效率。
Furthermore, there is quite a bit of boilerplate code involved in setting up an asynchronous call.
此外,在建立异步调用时还包括不少样板代码。
One way to reduce the pain of building boilerplate code is Visual Studio's code snippets feature.
减轻书写模板代码之痛苦的途径之一,是VisualStudio的代码片断功能。
If you decide to use Lombok, there's a chance that you might want to extend it to generate your own boilerplate code.
如果决定采用Lombok,那就可能会希望对其进行扩展,来生成自己的样板代码。
Have a naming convention which clearly labels macros as such, as well as indicate that a variable came from boilerplate code.
为宏建立明确的命名约定,并指出来自样板代码的变量。
This kind of architecture could only be employed with powerful tools to keep developers from writing tedious boilerplate code.
这类架构只能与强大的工具结合使用,从而使开发人员避免编写单调乏味的样板代码。
I'm going to use reflection to create a generic sorting infrastructure that doesn't have so much duplicated, boilerplate code.
我准备使用反射(reflection)来创建一种通用的排序基础设施,其中不会涉及大量复制的样板代码。
The gwt.js and nocache.html files both contain more or less boilerplate code designed to start and load your GWT application properly.
js和nocache.html文件都或多或少地包含了专门用于正确地启动和装入GWT应用程序的样例代码。
With Rails, we're able to use generators to produce boilerplate code, or we can create more custom applications with little effort, as well.
使用Rails,我们能够使用生成器生成样本代码,并且可以通过少量工作创建更多自定义应用程序。
The good news about the entries in Listings 2, 3, and 4 is that they are virtually the same in all of your applications and essentially boilerplate code.
关于清单2、3和4中的条目,好的方面是,在所有应用程序中它们几乎都是一样的,实际上这就是样板代码。
The Template Method pattern suggests that I should move common boilerplate code up the inheritance hierarchy, deferring algorithmic details to child classes.
TemplateMethod模式建议,应当将公共模板代码移到继承层次结构之上,将算法细节推迟到子类。
While the rest of the program is pretty much just boilerplate code to get the SAX2 parser running, the part in Listing 7 defines the application's personality.
虽然程序其他部分只是让SAX2解析器运行的样板代码,但是清单7中的部分定义了应用程序的个性。
It also provides you with an elegant application model, making heavy use of the delegate pattern to eliminate much of the boilerplate code from your application.
它还向您提供了一个优雅的应用程序模型,利用代理模式来从您的应用程序消除大量重复代码(boilerplate code)。
Chapter 8 deals with aspect oriented programming (AOP) as it applies to dependency injection, how it aims to save on boilerplate code, and reduce the risk of errors.
第8章涉及面向方面的编程(AOP)在依赖注入中的应用,如何用AOP节省样板代码,如何减少错误的风险。
Two things are worth mentioning when considering this code: First, the instantiation of an anonymous inner callback class requires a great amount of boilerplate code.
上面的代码有两点值得我们注意:首先,匿名内部回调类的实例化需要大量的样板代码。
Again, these setters are framework induced boilerplate code. Wouldn’t it be nice if they could be avoided without the need to use Constructor injection everywhere?
毫无疑问,这些setter是框架所需的样板代码,如果不使用构造器注入也能避免这一点岂不美哉?
We took care to build in support for this in Guice natively, I feel a lot more can be done in this area in further reducing boilerplate code and the potential for errors.
我们小心地在Guice内部支持这个功能,我觉得将来在减少样板代码和潜在错误这个方面大有可为。
Build scripts in languages like Groovy or Ruby are more concise and easier to read. There's less clutter, boilerplate code, and your build script can be structured better.
使用像Groovy或者Ruby这样的语言来构建脚本更加简洁、易懂,而且杂乱冗余的代码更少,结构上也更清晰。
It's an extremely useful tool in situations where boilerplate code is required, helping to keep your source tree free of clutter that contributes nothing to the operation of the application.
在需要样板代码的地方,它是极为有用的工具,可以帮助源代码树消除那些对应用程序的操作毫无用处的混乱。
Through MSIL rewriting, Volta follows developer's declarations to turn a single-tiered application into a multi-tiered application, generating boilerplate code for communication and serialization.
通过MSIL重写技术,Volta将单层应用转化成一个多层应用,自动生成通信和序列化的例程。
应用推荐