code n. 1.法典;法规。 2.规则,准则;(社会、阶级等的)惯例,习俗,制度。 3.(电)码,代码,密码,暗码;代号,略号,暗号。 4.【生物学】遗传(密)码。 the civil [criminal] code民[刑]法典。 the moral code道德准则。 code of signals 信号密码(本)。 code of the school 校规。 code and conventions 规章制度。 C- Napoléon 拿破仑法典。 C- of Hammurabi (古代巴比伦的)汉穆拉比法典。 code of honour 社会礼法;决斗惯例。 code of written law 成文法典。 the International Code 国际电码。 the Morse code 摩尔斯电码。 vt. 1.把…编成法典[法规]。 2.把…译成[编成]电码;编(码);译(码)。 n. -r 【自动化】编码装置;【电讯】记发器。
A large part of boilerplate code is simply setting up variables that are going to be used within your function, therefore the boilerplate macros should be introducing a large set of common bindings, as well as perhaps other housekeeping tasks 很大一部分样板代码仅仅是设置将在函数中使用的变量,因此样板宏应该引入许多通用的绑定,并执行其他内务处理任务。
A lot of the code written in large applications is boilerplate code which is tedious to write and, if a bug is discovered in the boilerplate code, it is very, very difficult to find every instance where the boilerplate is used and rewrite the code 大型应用程序中的许多代码是样板代码,样板代码编写起来很麻烦,而且如果样板代码中有bug,那么很难找到每个使用样板的地方并重写代码。
A lot of the code written in large applications is boilerplate code which is tedious to write and, if a bug is discovered in the boilerplate code, it is very, very difficult to find every instance where the boilerplate is used and rewrite the code 大型应用程序中的许多代码是样板代码,样板代码编写起来很麻烦,而且如果样板代码中有bug,那么很难找到每个使用样板的地方并重写代码。
Second, if you have a large application where many of the functions include a lot of boilerplate code, you can create a mini-language that will do the boilerplate code for you and allow you to code only the important parts 其次,如果您有一个很大的应用程序,这个程序有很多函数都包括了很多样板文件,那么就可以创建一个小型的语言,它可以生成这些样板代码,让您可以只实现重要的部分。
Second, if you have a large application where many of the functions include a lot of boilerplate code, you can create a mini-language that will do the boilerplate code for you and allow you to code only the important parts 其次,如果您有一个很大的应用程序,这个程序有很多函数都包括了很多样板文件,那么就可以创建一个小型的语言,它可以生成这些样板代码,让您可以只实现重要的部分。