Defining all of our SQL statements at the top of the file makes it easier to read the code and modify the ements to tweak our application.
在文件的顶部定义我们所有的sql语句可以使阅读代码,以及修改元素以调整应用程序变得更容易。
Listing 2 contains a code example of defining a file template.
清单2包含一个文件模板定义代码示例。
The above code also shows the first few steps towards defining a DSL.
上述代码同样展示了开始定义DSL所需的一些步骤。
Does the specification stick with defining the product and not the underlying software design, architecture, and code?
该规范不离开产品的定义,而不是底层的软件设计、架构和代码吗?
However, once you start separating your code into different packages, defining interfaces, and delegating work to others, your projects can become more complex to manage.
不过,一旦开始将代码分入不同的包、定义接口并将工作委托给其他人,项目管理会变得更复杂。
Defining a new REST API therefore becomes as simple as defining these action methods, filling them with code, and routing requests to them correctly.
因此,定义新的RESTAPI很简单,就是定义这些操作方法,用代码填充它们,并正确地将请求路由到它们。
The defining feature of MDD is that models have become primary artifacts of software design, shifting much of the focus away from the corresponding program code.
MDD的定义特征是,此模型已经成为软件设计的主要工具,它把许多注意力从相关的程序代码上转移开。
But extensions are usually limited to defining new stylesheet operations rather than altering existing ones, and usually require that someone write code in a traditional programming language.
但是扩展通常仅限于定义新的样式表操作,而不是修改现有的操作,并且通常需要人们用传统的编程语言编写代码。
The CDB contains an operation code defining the particular operation to perform and a number of operation-specific parameters.
CDB包含了用来定义要执行的特定操作的操作代码,以及大量特定于操作的参数。
The code generator also generates a sample for the visual part of XAML project defining all UI elements.
代码生成器还为XAML项目的可见部分生成一个示例,其中定义了所有用户界面元素。
As Listing 5 shows, defining a basic set of tests does not require a lot of code per test, even if it requires a test fixture to execute it due to needing to alter the default timeout.
如清单5所示,定义一组基础测试并不需要太多代码,即便由于更改默认超时值而需要用测试装置来执行测试也是如此。
At the expense of defining an additional interface and making the client code a little more verbose, this approach certainly has the edge for me when it comes to code clarity.
虽然代价是定义一个额外接口,还会使客户代码更长一些,但是这项技术对于代码清晰性来说具有优势。
Although defining a named query as an annotation can make it more reusable in the code, the benefit is so minimal that it is essentially useless.
命名查询是外部化查询的好方法。尽管将命名查询定义为注释可以使查询在代码中得到更多重用,但是优点很少,在本质上没有使用价值。
Listing 1 shows an example of code defining some role-based method permissions.
清单1所示的是用于定义某些基于角色的方法权限的示例代码。
For example, in the code above we used -d "for the command line option defining a name-value pair."
比方说,在上面的代码中我们用“- D”这一命令行选项来定义名-值对。
Defining the code page at the application level.
在应用程序级别上定义代码页。
Defining the code page at the database level.
在数据库级别上定义代码页。
Defining the code page at the operating system where the application runs.
在应用程序所运行的操作系统上定义代码页。
Defining the code page at the operating system where the database runs.
在数据库所运行的操作系统上定义代码页。
Nor have you prevented other code from defining its own invoice and manifest methods with different implementations.
您也没有阻止其他代码定义其自己的具有不同实现的invoice和manifest方法。
The first block of code is obviously a function declaration, defining a function named ToggleSyntax , which takes no arguments.
显然,第一个代码块是一个函数声明,定义了名为ToggleSyntax的函数,它没有包含任何参数。
In the next block of code I define the concept f: product, defining its preferred label, as well as alternate labels.
在接下来的代码块中,我定义了概念f:product,同时定义了它的优选标签和备选标签。
When the code in Listing 10 is run, the output will be XML defining the person element, as shown in Listing 11.
在运行清单10中的代码时,输出结果是XML文件,用来定义person元素,如清单11所示。
Android provides all the code to perform these IPC transactions, so you can focus on defining and implementing the RPC programming interface.
Android提供了执行IPC事务所需的全部代码,因此只要把注意力放在定义和实现RPC编程接口上即可。
The object code for a VM is also called bytecode, specifically defining an instruction set that an interpreter executes.
VM的对象代码也称为bytecode,特别定义解释程序执行的一个指令集。
By simply adding a header file to your code and defining MEMWATCH in your GCC statement, you can track memory leaks and corruptions in your program.
只要在代码中添加一个头文件并在gcc语句中定义了MEMWATCH之后,您就可以跟踪程序中的内存泄漏和错误了。
The code begins by defining the name of the Gnumeric file, followed by a trap that exits PHP if the file is not found.
这段代码以定义一个Gnumeric 文件名开始,接着是一个trap,用于在不找到文件时退出PHP。
This particular annotation indicates to the pureQuery's DDL code generation system to properly generate the CREATE INDEX statement for defining the primary key.
这个标注指示pureQuery的DDL代码生成系统恰当地生成用于定义主键的CREATEINDEX语句。
Beginning with Lotus Domino 6.5, administrators can set the level of cache cleanout by defining which elements (style sheets, static code, Web pages, URLs, and so on) to keep in the cache.
在开始使用LotusDomino 6.5时,管理员可以通过定义在缓存中保存哪些元素(样式表、静态代码、web页面、URL等)来设置缓存清除的接别。
As you might have guessed, I don't recommend defining scripted beans inside XML configuration files (or any type of code inside XML files for that matter).
您可能已经猜到,我不建议在XML配置文件中定义脚本bean(或这一方面的任何类型的代码)。
应用推荐