Scaffolding — like many metaprogramming techniques — is nothing but a run-time code generator.
搭建,像许多元编程技术一样,就是个运行时代码生成器。
If you're building a repetitive pattern, you'll get great mileage out of the metaprogramming techniques that form the foundation for scaffolding.
如果正在构建一个重复的模式,那么会从构成搭建基础的元编程技术得到巨大收获。
The Ruby language also has attributes (although they don't have a special name like "attributes" - they are one of many metaprogramming techniques Ruby offers).
Ruby语言也有属性(不过它们不像“属性”一样有特定名称—它们是Ruby提供的其中一种元程序设计方法)。
The Rails API: the Rails Framework documentation is the best way to learn about scaffolding from the inside out and the metaprogramming techniques that make it tick.
TheRailsAPI: Rails框架文档是从内到外学习搭建和让其工作的元编程技术的最佳途径。
Part 1 illustrates Rails scaffolding's limitations and introduces Streamlined, a code generator that USES highly effective metaprogramming techniques to eliminate higher-order repetition.
第1部分介绍Rails搭建的限制和Streamlined, Streamlined是个代码生成器,它高效地应用了元编程技术来消除更高层次上的重复。
You don't need to understand much about how the internals of Rails works, or the techniques (such as metaprogramming) that it USES internally.
你不需要了解Rails内部运作,或内部技术(例如metaprogramming)。
You don't need to understand much about how the internals of Rails works, or the techniques (such as metaprogramming) that it USES internally.
你不需要了解Rails内部运作,或内部技术(例如metaprogramming)。
应用推荐