Obtaining a simple reference to an EJB involved a lot of boilerplate code.
为了获得一个简单的EJB引用,就需要许多样板代码。
These two methods remove a lot of boilerplate code in most Web applications.
这两个方法减少了很多Web应用程序中的样板代码。
We can now create new forms based on our boilerplate code by doing the following
现在,就可以使用以下代码根据样板代码创建新表单
All the generic, boilerplate connectivity code has moved into the parent class.
所有通用的连接代码都已经转移到父类中了。
Most of this is just boilerplate code: several fields with getters and setters.
这段代码的大部分都是样本文件代码:几个字段和一些 getter 和 setter 方法。
Now, if you can, it's best to abstract out the boilerplate portions into a function.
现在,如果可以,最好是能够将这些样板部分抽象成一个函数。
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里面使用这一服务,我们需要放一些样板代码进去。
For example, I commonly need a boilerplate copyright notice at the bottom of Web pages.
例如,我经常需要在web页面底部加上标准的版权声明。
When creating a new document, there is a shortcut for adding boilerplate HTML, as shown below.
当创建新文档时,有一个添加样板HTML的快捷方式,如下所示。
It embraces core web technologies, making common, boilerplate tasks easier and more intuitive.
它包括核心web技术,使普通的web开发任务更容易、更直观。
Increase the productivity of software engineers by abstracting from low-level boilerplate code.
从低层次的重复代码中抽象出来,提高软件工程的生产效率。
These can be largely avoided by doing a few things in conjunction with your boilerplate macros.
通过对样板宏采取一些措施,可以在很大程度上避免这些问题。
Listing 1 presents the boilerplate module functions, defining the module entry and exit functions.
清单1展示了样板模块功能,定义了模块入口和出口函数。
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的代码片断功能。
Likewise, other standard macros can be created which make use of variables defined in the boilerplate.
同样,也可以创建其他标准宏来使用样板中定义的变量。
Other frameworks go further by abstracting many of the steps and providing a more logical flow with less boilerplate.
其他框架进一步提取大量步骤,并使用较少的样板文件提供一个更有逻辑的工作流。
If you decide to use Lombok, there's a chance that you might want to extend it to generate your own boilerplate code.
如果决定采用Lombok,那就可能会希望对其进行扩展,来生成自己的样板代码。
Carefully document all boilerplate macros, especially the introduced variable bindings and all changes between versions.
仔细地在文档中记录所有样板宏,尤其是引入的变量绑定和版本之间的所有变化。
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)来创建一种通用的排序基础设施,其中不会涉及大量复制的样板代码。
However, you could easily create some HTML on the page that listed each of these results; it's just a matter of boilerplate DOM code.
尽管如此,可以方便地在页面中创建HTML来列举每个结果;只是些样板DOM代码。
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应用程序的样例代码。
Brian White, Ticonderoga Securities' chief Apple (AAPL) analyst, has a boilerplate sentence stored on his computer that goes like this.
证券公司Ticonderoga Securities的首席苹果(Apple)分析师布莱恩·怀特在自己的电脑里存了这样一段文字。
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,我们能够使用生成器生成样本代码,并且可以通过少量工作创建更多自定义应用程序。
To get a minimal working server we also need to include the geronimo-boilerplate-minimal plug-in for start, stop and other functionalities.
为了获得一个最基本的工作服务器,我们还需要包括geronimo-boilerplate-minimal插件,以实现启动、停止及其他功能。
And, finally, it requires two lines of boilerplate down at the bottom, so that this particular test can be run by itself from the command line.
最后,需要两行固定不变的代码,这样才能从命令行运行这个测试。
For many interfaces, much of the functionality can be implemented with "boilerplate" code that will be valid for all classes that use the interface.
对于许多接口,大多数功能都可以用对于所有使用这个接口的类都有效的“样板”代码来实现。
应用推荐