3 ms·
I have the same problem with learning Ruby. The official tutorial basically runs you through "regular" style imperative programming. But when you see real-world
by jinushaun 15y ago
I have the same problem with learning Ruby. The official tutorial basically runs you through "regular" style imperative programming. But when you see real-world Ruby in the wild, it's always so cryptic, and uses popular language features that don't really get touched on in the tutorials.
- bad_user 15y agoIf you're talking about the Picaxe book, Ruby is all about meta-programming, so that's only a book to get you started. I also think it's a highly overrated book and personally I haven't had the patience to read it. Ruby code gets really clear when you understand "self", eigenclasses and closures. Required reading: http://pragprog.com/titles/ppmetr/metaprogramming-ruby http://pragprog.com/titles/ppmetr/metaprogramming-ruby Also, Ruby is not a functional language; but IMHO is much better and more elegant than many languages that claim to be functional.
- jamesbritt 15y agoThe pickaxe always struck me as Ruby from a Java programmer's perspective. At one point it was one of very few options in English but nowadays the choices are better. Ruby Best Practices and The Complete Rubyist are key reading.
- nvarsj 15y agoPickaxe is pretty awful for learning Ruby. I also did not have a great experience with it. My favorite Ruby book is http://www.amazon.com/Ruby-Programming-Language-David-Flanagan/dp/0596516177/ref=sr_1_3?ie=UTF8&qid=1308760667&sr=8-3 http://www.amazon.com/Ruby-Programming-Language-David-Flanag....
- joe_the_user 15y agoI have to agree. I remember reading early Rails code and - bang - everything is obscure notation for class member of private class using the '@' symbol or something (along with eval expression that would clearly slow down everything and ... did).
- jinushaun 15y agoI was specifically referring to Rails when I made my Ruby comment. Too much magic...