...ls的时候,也看过几本书,觉得其实没什么复杂,大同小异罢了,但是有一本书我却从未染指,《Ruby元编程》(Metaprogramming Ruby),因为他的复杂性是我所不愿意接受的。但是其实Ruby最强大的地方,我觉得正是元编程。
基于1个网页-相关网页
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提供的其中一种元程序设计方法)。
Languages with advanced metaprogramming capabilities, such as Ruby and Lisp, allow some testing tricks that other languages don't, such as easier access to mock objects.
具有高级元编程(metaprogramming)能力的语言,例如Ruby and Lisp,允许使用其他语言不支持的一些测试技巧,例如更容易访问mock对象。
The big thing that changed for me when I started coding in Ruby is my ability to produce and consume metaprogramming constructs.
当我开始用 Ruby 编写代码时,我受到的最大改变是产生和使用元编程结构的能力。
应用推荐