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.
同样,也可以创建其他标准宏来使用样板中定义的变量。
Limit any explanation to the boilerplate basics, whether you're "accepting a new opportunity" or have concluded this job is "not an ideal fit."
把一切解释都限制在常用的基本原因以内,不管是你“将接受一个新机会”,还是断定这份工作“不是非常合适”。
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上的传播与生俱来地不那么正式,和那些出现在品牌官网上的样板文件相比更加个性化和亲密。
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上的传播与生俱来地不那么正式,和那些出现在品牌官网上的样板文件相比更加个性化和亲密。
应用推荐