圖書標籤: Ruby MetaProgramming 編程 Programming 程序設計 計算機 ruby metaprogramming
发表于2025-03-21
Metaprogramming Ruby pdf epub mobi txt 電子書 下載 2025
Everyone in the Ruby world seems to be talking about metaprogramming--how you can use it to remove duplication in your code and write elegant, beautiful programs. Now you can get in on the action as well.
This book describes metaprogramming as an essential component of Ruby. Once you understand the principles of Ruby, including the object model, scopes, and eigenclasses, you're on your way to applying metaprogramming both in your daily work and in your fun, after-hours projects.
Learning metaprogramming doesn't have to be difficult or boring. By taking you on a Monday-through-Friday workweek adventure with a pair of programmers, Paolo Perrotta helps make mastering the art of metaprogramming both straightforward and entertaining.
Paolo Perrotta has more than ten years of experience as a developer and writer. He worked for domains ranging from embedded to enterprise software, computer games, and web applications. These days, Paolo coaches agile teams for Yoox, a large Internet fashion shop, and teaches Java to developers throughout Europe. He lives in Bologna, Italy, with his girlfriend and a cat. He loves Ruby.
結閤Ruby和Rails源碼對元編程思想的很好解釋,讀起來有些費勁,需要常讀纔能吃透
評分Essential Ruby reading, since meta-programming is essential building block of ruby
評分好書,值得一度,俺的筆記: http://blog.yxwang.me/blog/notes/programming/metaprogramming-ruby.html
評分居然齣中文版瞭
評分看完前四章,大緻瞭解瞭它的對象模型瞭。後麵的應用部分不看瞭,反正也不打算用ruby。確實用lua來實現這套模型是可以的(lua根本就沒有OO模型…),不過lua沒有多少語法糖,調用函數一定要加個(),實現DSL怎麼也不如ruby漂亮。其實也不喜歡內部DSL,一來語法受限,不如外部DSL使用parser的靈活,二來犧牲瞭運行效率,沒法對代碼做靜態檢查和優化。用外部DSL就可以兼顧兩者,雖然實現起來麻煩一些
在武林中,门派林立,高手如云。 有天分,又刻苦修炼几十载,都未必能赢得一招半式,博得蜗角微名。 但总有一些人,年纪轻轻,便得秘籍,不过数日之研习,几月之感悟,便融会贯通,傲视群雄,威震天下。 每每念及此处,总让天下英雄心痒。 如张无忌之《九阳神功》,令狐冲之《...
評分作者风格:自娱自乐,尤其喜欢描写新人和导师之间的对白动作,什么“导师掏出上衣口袋的纸巾擦擦汗”,”丢下了键盘,跑到会议室“之类的,感觉像小说。 不过,从章节划分,细节讨论来说,非常不错。用了不少典型库的代码段来说明如此设计的目的,加上对一些陷阱的提问,面面...
評分看了两遍以后 你会发现 看牛人的Code没那么难懂了~ 这是最明显的体现 其实我建议的是一开始的时候 就一边学一边练习 任何一个看不懂的技术点 都不要放过 其实打开irb 沉下心 慢慢看 没有看不懂的章节。 补充一句:我上一次挑灯夜读 手不释卷的读一本书是2010年春夏交接的事...
評分看了两遍以后 你会发现 看牛人的Code没那么难懂了~ 这是最明显的体现 其实我建议的是一开始的时候 就一边学一边练习 任何一个看不懂的技术点 都不要放过 其实打开irb 沉下心 慢慢看 没有看不懂的章节。 补充一句:我上一次挑灯夜读 手不释卷的读一本书是2010年春夏交接的事...
評分Metaprogramming Ruby pdf epub mobi txt 電子書 下載 2025