它使用绑定极大地减少了样板文件代码。
样板文件还是内联内容?
有大量样板文件的程序,但是无法抽象成函数
Programs that have a lot of boilerplate code that cannot be abstracted into functions
现在开始粘贴一般的G 2样板文件。
创建与应用样板文件。
使用清单2所示的文件创建index . html样板文件。
Create a boilerplate index.html file with the file shown in Listing 2.
虽然这可能是样板文件,但特务们以后互通情报的时候可得三思而行了。
This could well be boilerplate. But spies may think twice now before passing on information.
在这种情况中,通常创建一个小型的语言来更简单地利用样板文件的代码。
In such cases, it is often a good idea to create a mini-language that allows you to work with your boilerplate code in an easier fashion.
不足之处在于这需要一些样板文件代码来创建一些新类并需要四处操作对象。
The drawback is that it requires some boilerplate code to create new classes and manipulating objects around.
JAX - RS使用注释来减少样板文件代码并提供一个简要的注释。
JAX-RS USES annotations to cut down on the amount of boiler plate code and provides a short hand notation.
其他框架进一步提取大量步骤,并使用较少的样板文件提供一个更有逻辑的工作流。
Other frameworks go further by abstracting many of the steps and providing a more logical flow with less boilerplate.
通过样板文件的制作,使设计者快速创建新图形,极大地提高了设计效率。
Through the making of the template file, it makes the designer create new drawing quickly, and improves design efficiency greatly.
很显然,该代码的样板文件可重复使用,我们通常会在面向对象语言中通过创建架构来实现。
Clearly, the boilerplate portion of this code could be reused, and we typically do so in object-oriented languages by creating structure.
那些简单重复比赛题目和复制粘贴引言中的样板文件的摘要一般将被认为是没有竞争力的。
Summaries that are mere restatements of the contest problem, or are a cut-and-paste boilerplate from the Introduction are generally considered to be weak.
MySpace和Twitter上的传播与生俱来地不那么正式,和那些出现在品牌官网上的样板文件相比更加个性化和亲密。
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.
在这些宏中,您可以简单地指定某些特定的参数,M4处理器可以对一个样板文件进行操作,这个文件是特定于本地安装和sendmail的通用设置的。
In the macros you simply specify certain parameters, and the M4 processor applies a boilerplate that is specific to both your local installation and sendmail in general.
最后,Levine说,OpenSim将需要开发一个类似Creative Commons(创意共用)的框架,有专门针对虚拟世界的法律用语样板文件。
Ultimately, Levine said, OpenSim would need to develop a framework similar to Creative Commons, with boilerplate legal language specifically adapted to virtual worlds.
最后尼可拉斯掌控一切,告诉他们应当在哪里签字盖章,需要留下哪些文件,这是尼可拉斯积极主动姿态取得成功的完美样板。
He eventually took control, pointing out where they had to sign, stamp and tear the relevant documents - a successful example of his assertiveness.
通过JPA,所有这些样板化代码都通过Annotation或XML文件委托给JPA,从而保留了清楚的应用程序逻辑。
With JPA, all this boiler-plate code is delegated to the JPA provider through annotations or XML files, leaving a clean application logic. JPA provides.
我们没有创建样板视图方法,而是将所有的业务逻辑都放入了urls . py文件中,它们都由Django提供的通用视图进行处理。
Instead of creating boilerplate view methods, all of the business logic is in the urls.py file and is handled by the generic view methods supplied by Django.
从文件中导入颜色样板。
在完全按你的喜好调好虚拟硬件的配置后,你就能把服务器磁盘映像保存到文件中,对其他的客系统而言它可以当做样板用。
After you've tuned a virtualized hardware configuration precisely to your liking, you can save that server's disk image to a file and use it as a template for other guest systems.
在完全按你的喜好调好虚拟硬件的配置后,你就能把服务器磁盘映像保存到文件中,对其他的客系统而言它可以当做样板用。
After you've tuned a virtualized hardware configuration precisely to your liking, you can save that server's disk image to a file and use it as a template for other guest systems.
应用推荐