10/19/2010

meta-programming in ruby

最近大概是人生當中比較閒時段,拿起meta-programming in ruby 書本閱讀,思考rubyonrails可以幫助我什麼,它的核心精神又是什麼。rubyonrails一直是很magic framework,讓它這麼強大、動態原因還是在ruby meta-programming,隨手整理還需要強化的地方。

  1. The object model
  2. block (closure) v.s proc v.s lambda
  3. methods (method_missing and dynamic methods)
  4. class v.s module design
  5. meta-program api
  6. review of the design of activerecord

雖然ruby很動態、magic不過就像大老所說:

There is no such thing as meta-programming. It’s just programming all the way through.