But often the boilerplate code isn't so pretty.
但是通常来说,这些样板代码并不会如此精美。
Lombok has a clever solution to the boilerplate code problem, however.
然而,Lombok有一个很智能的方法来解决样板代码问题。
Now, if you can, it's best to abstract out the boilerplate portions into a function.
现在,如果可以,最好是能够将这些样板部分抽象成一个函数。
Listing 1 presents the boilerplate module functions, defining the module entry and exit functions.
清单1展示了样板模块功能,定义了模块入口和出口函数。
Likewise, other standard macros can be created which make use of variables defined in the boilerplate.
同样,也可以创建其他标准宏来使用样板中定义的变量。
You can also create some helper methods to simplify the boilerplate initialization of the server object.
还可以创建一些助手方法以简化服务器对象的样例初始化。
And here's the full text of PacBio's 8-k statement, minus the boilerplate about forward-looking statements.
而这里的PacBio的8 - K声明的全文,减去有关前瞻性陈述的样板。
Clearly, the boilerplate portion of this code could be reused, and we typically do so in object-oriented languages by creating structure.
很显然,该代码的样板文件可重复使用,我们通常会在面向对象语言中通过创建架构来实现。
We've tried to factor out all the boilerplate code into the Ubiquity core, so that writing a useful Ubiquity command is as simple as this.
我们已经试图把所有样板代码写入ubiquity的核心,这样写一个有用的Ubiquity命令就会如此之简单。
Limit any explanation to the boilerplate basics, whether you're "accepting a new opportunity" or have concluded this job is "not an ideal fit."
把一切解释都限制在常用的基本原因以内,不管是你“将接受一个新机会”,还是断定这份工作“不是非常合适”。
The Boilerplate: "Provide remote cardiac diagnostic services in the emerging markets, which account for 80% of global cardiovascular disease burden."
在展板上说“提供远程心血管疾病诊断服务是一个新兴市场,他拥有全球80%的心血管疾病的用户。
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.
它还向您提供了一个优雅的应用程序模型,利用代理模式来从您的应用程序消除大量重复代码(boilerplatecode)。
Communication on Facebook, MySpace and Twitter must be inherently less formal, more personal and intimate than the boilerplate copy that appears on a brand Web site.
MySpace和Twitter上的传播与生俱来地不那么正式,和那些出现在品牌官网上的样板文件相比更加个性化和亲密。
This is primarily because JmsTemplate is providing all the boilerplate resource management of JMS Connections, Sessions and MessageProducers that you would otherwise need to code.
这主要是因为你不再需要去写代码了,JmsTemplate已经提供了JMS连接、会话和MessageProducter的所有模板资源管理。
This gives you freedom in naming methods the way you like while preserving the full control over the query definition without bothering you with the boilerplate query execution code.
这样你可以自由的进行方法命名,既可以对查询定义实现完全控制,又不必担心那些查询模板代码。
The closures notation strips away the boilerplate associated with inner classes, allowing a more compact (and more importantly, more direct) expression of the desired data operation.
闭包标注取消了与内部类相关的引用,允许更紧凑(重点更突出、更直接)地表示需要的数据操作。
It would save time and effort, but at the expense of code readability and comprehension, because boilerplate code usually adds noise to application source.
这是节省了时间与精力,但将以牺牲可读性与可理解性为代价,因为样本代码通常会向应用程序源增加干扰词。
For many interfaces, much of the functionality can be implemented with "boilerplate" code that will be valid for all classes that use the interface.
对于许多接口,大多数功能都可以用对于所有使用这个接口的类都有效的“样板”代码来实现。
The drawback is that it requires some boilerplate code to create new classes and manipulating objects around.
不足之处在于这需要一些样板文件代码来创建一些新类并需要四处操作对象。
But don't worry; most of the code is boilerplate, and if you just take it step by step you'll be fine.
但是不必担心;大部分代码都是样例,并且如果您按照它逐步执行,将不会遇到任何问题。
All the generic, boilerplate connectivity code has moved into the parent class.
所有通用的连接代码都已经转移到父类中了。
His law partner, William Herndon, swore Lincoln was an atheist, and to be sure, there are plenty of boilerplate references to the Almighty scattered through Lincoln's speeches.
他的法律合作者威廉姆·赫恩灯发誓保证林肯是个无神论者,诚然,有很多分散在林肯的演讲中的提到上帝的文件资料。
The header and footer of the tutorial are generated by boilerplate, and most of the tags in the body of the panel are virtually identical to their HTML counterparts.
教程的页眉和页脚是由样板生成的,并且面板主体中的大多数标记实际上等同于它们的HTML对应标记。
In the Outline view, you can see that the generated methods show up in the compile class, while the source file remains free of boilerplate.
在大纲视图中,可以看到在编译类中展示了所生成的方法,同时源文件仍处于样文件之外。
In other words, yes, we're doing this, and yes, we've already got the marketing boilerplate prepared, but no, we don't want to officially announce it until we see how caustic the criticism will be.
我们确实正在进行筹划此事,而且我们已经准备好了推广口号。不过,在确定市场的批评会有多尖酸刻薄前,我们并不打算正式公布计划。
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节省样板代码,如何减少错误的风险。
The process should start with a boilerplate SELECT containing a blank spot where the parser will fill in the rest.
该过程应该首先从一个包含空白处的模板SELECT,解析器将填写此空白处。
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中的部分定义了应用程序的个性。
This means that boilerplate code is one of the few places where non-hygienic macros are useful.
这意味着样板代码是适合使用非健康宏的少数几种情况之一。
This might sound like libertarian boilerplate: Nietzsche repackaged for the Chamber of Commerce crowd.
这似乎说白了也就是自由意志主义者:只不过是包装成商会成员的尼采。
应用推荐