Metaprogramming Ruby

Metaprogramming Ruby
内容简介:

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 lov...

作者简介:
下载地址:
下载Metaprogramming Ruby
标签:
文章链接:https://www.dushupai.com/book-content-30955.html(转载时请注明本文出处及文章链接)
读书评论: 更多
  • 机械唯物主义
    01-01
    简单的一点点东西, 硬是给作者弄得那么长. 可能对于初学者有用吧. 反正我觉得很多读书时间浪费掉了. 读书笔记 http://blog.linjunhalida.com/article/Metaprogramming_Ruby%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0
  • QWERTY
    02-20
    看完前四章,大致了解了它的对象模型了。后面的应用部分不看了,反正也不打算用ruby。确实用lua来实现这套模型是可以的(lua根本就没有OO模型…),不过lua没有多少语法糖,调用函数一定要加个(),实现DSL怎么也不如ruby漂亮。其实也不喜欢内部DSL,一来语法受限,不如外部DSL使用parser的灵活,二来牺牲了运行效率,没法对代码做静态检查和优化。用外部DSL就可以兼顾两者,虽然实现起来麻烦一些
  • Whyme Lyu
    03-03
    内容不多,Eloquent Ruby 更推荐。当然这本也是有独特内容的
猜你喜欢: