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.
发表于2024-05-14
Metaprogramming Ruby 2024 pdf epub mobi 电子书
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 ...
评分 评分很薄的一本,但是把Ruby的高级特性介绍的很透,并且附带了大量的例子和真实中的代码进行讲解,深入浅出。我在给公司做Ruby的技术分享的时候,多亏这本书,帮我将高级的这些特性,以更容易懂的方式表现出来,并吸引了一批人对Ruby这个Sexy的语言的关注。
评分这本书真的很有趣。通过一个编程老手带着一个菜鸟用元编程的技术重构代码,展示了元编程的实际应用场景。同时也不失时机的指出了一些坑。用会话的方式,来增加亲切感,这种组织方式,在编程书中并不少见。重点是作者的文采真的很好,显得很有灵性,下面摘抄一段(来自4.3.1 小...
评分想了解ruby元编程的话,先看法术手册。 假如有不懂的话再返回到书有关这部分内容看,效果拔群。 但也没人挡着你把书读完。 不过整本书读起来也很爽,用mentor的语气写,也是另外一种文体嘛。 期待第二版内容会更多。
图书标签: Ruby MetaProgramming 编程 Programming 程序设计 计算机 ruby metaprogramming
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.
简单的一点点东西, 硬是给作者弄得那么长. 可能对于初学者有用吧. 反正我觉得很多读书时间浪费掉了. 读书笔记 http://blog.linjunhalida.com/article/Metaprogramming_Ruby%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0
评分看完前四章,大致了解了它的对象模型了。后面的应用部分不看了,反正也不打算用ruby。确实用lua来实现这套模型是可以的(lua根本就没有OO模型…),不过lua没有多少语法糖,调用函数一定要加个(),实现DSL怎么也不如ruby漂亮。其实也不喜欢内部DSL,一来语法受限,不如外部DSL使用parser的灵活,二来牺牲了运行效率,没法对代码做静态检查和优化。用外部DSL就可以兼顾两者,虽然实现起来麻烦一些
评分简单的一点点东西, 硬是给作者弄得那么长. 可能对于初学者有用吧. 反正我觉得很多读书时间浪费掉了. 读书笔记 http://blog.linjunhalida.com/article/Metaprogramming_Ruby%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0
评分再读一遍
评分结合Ruby和Rails源码对元编程思想的很好解释,读起来有些费劲,需要常读才能吃透
Metaprogramming Ruby 2024 pdf epub mobi 电子书