Create generic code templates.
创建通用代码模板。
Generic code templates allow you to reuse code.
通用代码模板允许对代码进行重用。
You can easily combine Listings 3 and 5 to make a generic code template handler.
您可以轻松地将清单3和清单5组合起来,获得一个通用代码模板处理器。
When you click Enter, the CDT produces generic code representing the chosen type of for loop.
单击Enter,CDT会生成代表for循环的已选定类型的通用代码。
It indicates which regions are free for platforms to use, and which are used by generic code.
说明了哪些区域是给ARM平台使用的,哪些区域是通用代码使用的。
Giving better error messages inside generic code than the sometimes hard to follow compiler ones.
在代码内部有时能比努力的遵从编译器给出更好的错误信息。
What's more, these classes work seamlessly with both legacy code and new generic code (next month, we'll explain how that's possible).
此外,这些类能与旧代码和新的泛型代码一起无缝工作(下个月,我们会说明如何做到这一点)。
After placing generic code into reusable components or frameworks, consider using code generators to produce specialized code more efficiently.
在将泛型代码放入可重用组件或框架时,可以考虑使用代码生成器来更有效地生成特定的代码。
Before the rise of object-oriented languages, reusable generic code was mostly written by library vendors rather than by application developers.
在面向对象语言普及之前,可重用的通用代码大部分是由库提供者写的,而不是应用程序员。
This is very generic code that you can reuse for other types of mediations, too, given that you change the namespace and root message values, respectively.
这是非常通用的代码,如果分别更改名称空间和根消息值,则还可以在其他类型的中介中重新使用。
To increase the usefulness of our generic code, instead of specifying the exact type of a generic type parameter, we can specify an upper (or lower) bound instead.
要提高泛型代码的有效性,可以指定一个上限(或下限),而不是指定某个泛型类型参数的精确类型。 这可以使用有界通配符来实现,它的形式为 “?
There are approximately 2000 generic error codes defined with the -99999 generic error code.
目前由- 99999这个通用错误代码定义的错误代码大约有2000条。
The tools described here are not the answer to every problem, and sometimes you'll need a custom piece of code, but generic command-line imaging tools can often save a lot of work.
这里所描述的工具并不能解决所有问题,有时您会需要定制代码段,但是通用的命令行图像处理工具通常可以大幅度地减轻工作负担。
One is the "common" patch that contains the changes for the generic kernel code, and the other is the architecture-specific patch.
一个是“公共的”补丁,包含了对通用内核代码的更改,另一个是特定于体系结构的补丁。
The code becomes generic, as multiple rule sets can be applied using a single code base.
这段代码会变得更加通用,因为一个代码库就可以应用多个规则集。
In both generic scenarios, no code page conversion will happen if the code pages are the same for all the systems.
在这两个通用场景中,如果用于所有系统的代码页相同,就不会发生代码页转换。
Looking back at Listing 1 and 2, all of the code is generic JPA code.
回头看看清单1和清单2,所有代码都是通用的JPA代码。
All the generic, boilerplate connectivity code has moved into the parent class.
所有通用的连接代码都已经转移到父类中了。
Functional programming achieves code reuse by abstracting out generic pieces of machinery, customizable via higher-order functions.
函数式编程通过提取通用的功能部分来实现代码重用,可通过高阶函数进行定制。
We'll get started with some sample code and then jump right into how you access generic information at run time.
我们首先使用一些示例代码,然后直接讨论如何在运行时访问泛型信息。
Now let's turn our attention from generic textual-substitution programs to highly specialized code generators.
现在让我们把注意力从通用的文本替换程序转移到专用的代码生成器上来。
Another place where closures offer an opportunity to dramatically simplify code is in the use of generic algorithms.
闭包能够大大简化代码的另一个地方是泛化算法的使用。
I have found that being able to report these exceptions with a specific error code (instead of a generic exception or, even worse, no reported error) has saved me hours tracking bugs.
我发现,在跟踪错误时,用特定的错误码(而不是一般的异常或—甚至更糟—不报告错误)来报告这些异常节省了我数小时的时间。
Not only is the DAO code reduced through the use of the generic DAO, but it is also possible to create generic UI plumbing code that is agnostic about the type of data being queried and displayed.
不但通过使用泛型DAO减少了dao代码,还可以创建通用的UI模板代码,这种代码不知道所查询和显示的数据的类型。
But the code in Listing 7 is really ugly; it takes many more lines of code to express the generic algorithm equivalent of the three lines in Listing 6.
但是清单7中的代码不简洁,用了更多代码来表达和清单6中三行代码等价的泛化算法。
These elements of nontransparency can cause confusion when migrating code to take advantage of generic algorithms.
为了利用泛化算法而对代码进行移值的时候,这些不透明因素可能会造成混乱。
Now, instead of using queues and topics directly in the code, we can use generic base classes, such as Destination, to produce the message.
现在,我们不是在代码中直接使用队列和主题,而是使用通用基类(例如Destination)来产生消息。
Finally, for OpenSocial compatible networks and applications, a link to an XML file is provided and for anywhere else you need a gadget, there's a generic embed code that can be used.
最后,对于兼容opensocial的网络和应用,Zoho提供一个XML文件的链接,如果用户想在其他地方需要的地方添加这些小工具,Zoho也提供一个通用的嵌入代码。
Therefore, generic framebuffer code that doesn't explicitly understand the PS3 will break spectacularly if you simply compile it and let it run.
因此,如果您简单地编译并运行通用framebuffer代码,它并不能显式地理解PS 3会这样中断。
Its RESTful API allows me to indicate that I am supplying an IATA code instead of a generic text-search term.
它的RESTfulAPI允许我指明我提供的是IATA代码,而不是通用的文本搜索术语。
应用推荐