最近大概是人生當中比較閒時段,拿起meta-programming in ruby 書本閱讀,思考rubyonrails可以幫助我什麼,它的核心精神又是什麼。rubyonrails一直是很magic framework,讓它這麼強大、動態原因還是在ruby meta-programming,隨手整理還需要強化的地方。
- The object model
- block (closure) v.s proc v.s lambda
- methods (method_missing and dynamic methods)
- class v.s module design
- meta-program api
- review of the design of activerecord
雖然ruby很動態、magic不過就像大老所說:
There is no such thing as meta-programming. It’s just programming all the way through.
No comments:
Post a Comment