…and having been using it literally daily ever since, it's joyful to read from someone that is just starting. I also started with https://www.railstutorial.org/book, highly recommend it. I also loved Metaprogramming Ruby (Paolo Perrotta) - it's more advanced and starts to open your mind to how Rails magic DSL's were built. I just bought today "Rebuilding Rails" (https://rebuilding-rails.com/), heard great things about…
…understand what's happening behind the scenes in rails until you understand the tools at work. If you've got the basics of Ruby down, get this book and take it to the next level http://www.amazon.com/Metaprogramming-Ruby-Program-Like-Pros... As for the gems in rails..study their code, learn what they try to do, then program it yourself, else you might spend forever fighting with poorly documented and fragile gems, that…
For any struggling to understand Ruby's metaprogramming, the rather short and succinct Metaprogramming Ruby is an excellent read. There's a method to the madness of define_method, method_missing, the various eval methods, the difference between Blocks, Procs, and Lambdas. Most of it revolves around manipulating…
我最近最喜欢的书是克莱·舍基(Clay Shirky)的《人人时代》(Here Comes Everybody)和佩罗塔(Perrotta)的《Metaprogramming Ruby》。如果你还没读过克里斯·安德森(Chris Anderson)的《免费》(Free),我也强烈推荐。哥本哈根未来研究所的《Anarconomy》虽然只是一篇文章,读起来也非常有意思(http://www.cifs.dk/doc/medlemsrapporter/MR0309UK.pdf)。……
My favourite books read lately are Here Comes Everybody by Clay Shirky and Perrotta's Metaprogramming Ruby. If you haven't read Free by Chris Anderson, it's also highly recommended. It's just an article, but Anarconomy by the Copenhagen Institute for Futures Studies was a very interesting read (http://www.cifs.dk/doc/medlemsrapporter/MR0309UK.pdf).…
Metaprogramming Ruby [0] explains Ruby's handling of scope really well. Also, you might enjoy a silly gem I wrote a while ago called ghost_attributes [1]. It uses closures to mimic attr_accessor. The funny thing about it…
…Ruby http://ruby.bastardsbook.com/ (3) Pragmatic Studio Ruby Course - http://pragmaticstudio.com/ruby (4) Eloquent Ruby by Russ Olsen (5) http://www.rubymonk.com/ (6) http://www.rubykoans.com/ (7) Metaprogramming Ruby by Paolo Perrotta (8) codeschool.com (9) Michael Hartl's Rails Tutorial- http://ruby.railstutorial.org/ (10) The Rails 3 Way by Obie Fernandez (11) http://www.railscasts.com
……而且从那以后我真的是每天都在用它,看到刚入门的新人写的东西感觉特别亲切。我最初也是跟着 https://www.railstutorial.org/book 学的,强烈推荐。我也很喜欢 Paolo Perrotta 写的《Metaprogramming Ruby》——内容更进阶,读完会让你恍然大悟:原来 Rails 那些神奇的 DSL 是这么搭出来的啊。我今天刚买了《Rebuilding Rails》(https://rebuilding-rails.com/),听说口碑超棒……
…and having been using it literally daily ever since, it's joyful to read from someone that is just starting. I also started with https://www.railstutorial.org/book, highly recommend it. I also loved Metaprogramming Ruby (Paolo Perrotta) - it's more advanced and starts to open your mind to how Rails magic DSL's were built. I just bought today "Rebuilding Rails" (https://rebuilding-rails.com/), heard great things about…
……在搞清楚底层工具有哪些之前,你根本不可能搞懂 rails 幕后到底发生了什么。如果你已经掌握了 Ruby 基础,那就赶紧入手这本书进阶一下吧:http://www.amazon.com/Metaprogramming-Ruby-Program-Like-Pros... 至于 rails 里的那些 gem……去钻研它们的源码,看看它们到底想干啥,然后自己动手写一遍,不然你可能会把大把时间耗在跟文档稀烂又脆弱易碎的 gem 较劲上,那……
…understand what's happening behind the scenes in rails until you understand the tools at work. If you've got the basics of Ruby down, get this book and take it to the next level http://www.amazon.com/Metaprogramming-Ruby-Program-Like-Pros... As for the gems in rails..study their code, learn what they try to do, then program it yourself, else you might spend forever fighting with poorly documented and fragile gems, that…
对于任何在费劲理解 Ruby 元编程的人来说,篇幅不长且言简意赅的《Metaprogramming Ruby》绝对是一本必读好书。像 define_method、method_missing、各种 eval 方法,还有 Blocks、Procs 和 Lambdas 之间的区别,看似疯狂,背后其实大有门道。其中大部分内容都是围绕着操作……
For any struggling to understand Ruby's metaprogramming, the rather short and succinct Metaprogramming Ruby is an excellent read. There's a method to the madness of define_method, method_missing, the various eval methods, the difference between Blocks, Procs, and Lambdas. Most of it revolves around manipulating…
我最近最喜欢的书是克莱·舍基(Clay Shirky)的《人人时代》(Here Comes Everybody)和佩罗塔(Perrotta)的《Metaprogramming Ruby》。如果你还没读过克里斯·安德森(Chris Anderson)的《免费》(Free),我也强烈推荐。哥本哈根未来研究所的《Anarconomy》虽然只是一篇文章,读起来也非常有意思(http://www.cifs.dk/doc/medlemsrapporter/MR0309UK.pdf)。……
My favourite books read lately are Here Comes Everybody by Clay Shirky and Perrotta's Metaprogramming Ruby. If you haven't read Free by Chris Anderson, it's also highly recommended. It's just an article, but Anarconomy by the Copenhagen Institute for Futures Studies was a very interesting read (http://www.cifs.dk/doc/medlemsrapporter/MR0309UK.pdf).…
《Metaprogramming Ruby》[0] 把 Ruby 处理作用域(scope)的机制讲得非常透彻。另外,你可能会对我前阵子写的一个沙雕 gem 感兴趣,叫 ghost_attributes [1]。它用闭包来模拟 attr_accessor。最搞笑的地方在于……
Metaprogramming Ruby [0] explains Ruby's handling of scope really well. Also, you might enjoy a silly gem I wrote a while ago called ghost_attributes [1]. It uses closures to mimic attr_accessor. The funny thing about it…
……Ruby http://ruby.bastardsbook.com/ (3) Pragmatic Studio 的 Ruby 课程 - http://pragmaticstudio.com/ruby (4) Russ Olsen 写的《Eloquent Ruby》 (5) http://www.rubymonk.com/ (6) http://www.rubykoans.com/ (7) Paolo Perrotta 写的《Metaprogramming Ruby》 (8) codeschool.com (9) Michael Hartl 的 Rails Tutorial - http://ruby.railstutorial.org/ (10) Obie Fernandez 写的《The Rails 3 Way》 (11) http://www.railscasts.com
…Ruby http://ruby.bastardsbook.com/ (3) Pragmatic Studio Ruby Course - http://pragmaticstudio.com/ruby (4) Eloquent Ruby by Russ Olsen (5) http://www.rubymonk.com/ (6) http://www.rubykoans.com/ (7) Metaprogramming Ruby by Paolo Perrotta (8) codeschool.com (9) Michael Hartl's Rails Tutorial- http://ruby.railstutorial.org/ (10) The Rails 3 Way by Obie Fernandez (11) http://www.railscasts.com