Metaprogramming Ruby
- 书名:Metaprogramming Ruby
- 作者: Paolo Perrotta
- 格式:PDF
- 时间:2024-07-01
- 评分:
- ISBN:9781934356470
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...
- 上一篇: Chaos Engineering
- 下一篇: 七缀集
-
机械唯物主义01-01简单的一点点东西, 硬是给作者弄得那么长. 可能对于初学者有用吧. 反正我觉得很多读书时间浪费掉了. 读书笔记 http://blog.linjunhalida.com/article/Metaprogramming_Ruby%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0
-
QWERTY02-20看完前四章,大致了解了它的对象模型了。后面的应用部分不看了,反正也不打算用ruby。确实用lua来实现这套模型是可以的(lua根本就没有OO模型…),不过lua没有多少语法糖,调用函数一定要加个(),实现DSL怎么也不如ruby漂亮。其实也不喜欢内部DSL,一来语法受限,不如外部DSL使用parser的灵活,二来牺牲了运行效率,没法对代码做静态检查和优化。用外部DSL就可以兼顾两者,虽然实现起来麻烦一些
-
Whyme Lyu03-03内容不多,Eloquent Ruby 更推荐。当然这本也是有独特内容的
-
2024-07-064
-
2024-07-065
-
2024-07-067
-
2024-07-062
-
2024-07-068
-
2024-07-065
-
2024-07-0611
-
2024-07-065