You can also use metaprogramming techniques.
你也可以使用元编程(metaprogramming)技术。
Besides frameworks, metaprogramming is also helpful in testing.
除了框架,元编程还能够帮助测试。
As you can see, metaprogramming is all about extreme flexibility.
可以看到,元编程提供了极好的灵活性。
You can define attributes to create declarative metaprogramming tags.
您可以通过定义属性来创建声明性元程序设计标记。
We then looked at several metaprogramming systems and examples of their use.
然后我们介绍了几种元编程系统,并给出了几个使用这些系统的例子。
If your metaprogramming requires eval, it's subject to the same requirements.
如果你的元编程需要eval,那它也必须遵循相同的要求。
Enterprise metaprogramming involves these as well, but also adds other considerations.
虽然企业元编程同样涉及这些问题,但是它们还增加了其他一些考虑。
Often, most of the code can use the metaprogramming tools available to accomplish the task.
通常,大部分代码都可以使用元编程工具来实现这个任务。
Scaffolding — like many metaprogramming techniques — is nothing but a run-time code generator.
搭建,像许多元编程技术一样,就是个运行时代码生成器。
In fact, most of the time that I use metaprogramming on a daily basis is when I'm writing tests.
其实,我平常大多数时候都把元编程应用在写测试上面。
Part 2 will delve more deeply into Streamlined's metaprogramming model and customization features.
第2部分将进一步深入Streamlined的元编程模型及其定制特性。
But the Searchable plug-in also does a bit of metaprogramming on your individual domain classes.
但Searchable插件也可以在您个人的域类上做一些元编程。
Without it we would not have Grails: Groovy metaprogramming makes convention over configuration possible.
没有它就没有Grails:groovy元编程(metaprogramming)让“惯例优于配置”成为了可能。
Many Rails model objects are simple because the attributes are all added dynamically with metaprogramming.
许多Rails模型对象之所以简单,是因为属性都是用元编程动态添加的。
Giles starts with the Greek letters PI, lambda and the word meta to lead over to metaprogramming (5:25).
Giles首先以希腊字母pi、lambda和单词meta为元编程开头(5:25)。
You can create views, which you may or may not need to modify, with true metaprogramming or code generation.
可以用真正的元编程或代码生成来创建视图,视图可能需要修改,也可能不需要修改。
It is shown here for context; most of it is semi-advanced Ruby metaprogramming so I won't discuss it in detail.
其作用是提供上下文参考;其大多数内容都是比较高级的Ruby元编程,因此本文并不会详细讨论它。
For a wide variety of metaprogramming tasks, this feature makes macros more predictable and easier to work with.
对于许多元编程任务,这个特性使宏更可预测并容易使用。
When you need to do metaprogramming, open up your toolbox and throw in some languages that allow delayed binding.
当您需要进行元程序设计时,请打开您的工具箱,加入几种允许延迟绑定的语言。
In a dynamically typed language, it is often necessary to use metaprogramming features to implement advanced designs.
在一种动态类型语言中,使用元编程特性来实现高级设计经常是必要的。
Because of this, the metaprogramming system should be customizable to produce output for a wide variety of systems.
由于这个原因,元编程系统应该可以进行定制,从而为各种系统产生输出。
Using a combination of Ruby reflection and metaprogramming, the columns of the table become properties of the object.
使用Ruby反射和元编程的组合,表的列可以变成对象的属性。
It USES metaprogramming to generate the view model and allow you to bind to the objects you define in your controller.
它使用元编程来生成视图模型,使你能够绑定至你在控制器中定义的对象。
InfoQ: If you have your own interpreter, how does this interact with metaprogramming and other dynamic behavior of Ruby?
InfoQ:要是你们有自己的解释器,它如何支持元编程(metaprogramming)以及Ruby的其他动态特性?
Because you can include functions in the data structures, functional languages make excellent platforms for metaprogramming.
因为可以在数据结构中包含函数,所以函数性语言构成了元编程的优秀平台。
The best systems are those that allow you to work at multiple levels of abstraction within the metaprogramming system itself.
最好的系统可以让您在元编程系统本身内部就可以进行多级抽象。
The big thing that changed for me when I started coding in Ruby is my ability to produce and consume metaprogramming constructs.
当我开始用Ruby编写代码时,我受到的最大改变是产生和使用元编程结构的能力。
Parts 1 and 2 in this series focused on textual metaprogramming systems; however, many metaprogramming systems are graphical in nature.
本系列文章的第1部分和第2部分着重介绍了文本元编程系统系统;然而,很多元编程系统实际上都是图形化的。
Based on Hibernate with Swing, JMatter allows rapid development of quite sophisticated applications based on a metaprogramming model.
JMatter基于Hibernate和Swing,它允许根据元编程模型迅速地开发非常复杂的应用程序。
应用推荐