Re:Read your Standard Libraries
by bradleyland on Friday January 03, 2014 @02:30PM
(#7007522)
If you're speaking of code reading, I find looking at the source code of Rubinius very interesting.
Ruby has so much utility wrapped up in places like Enumerator, that you don't see a lot of examples of low-level data structure implementation in the wild. You could look at MRI Ruby, you'd be looking at a lot of C, which tells you a lot about how Ruby works, but doesn't show you much actual Ruby. That's where Rubinius is really great. You get to see how a smart team would implement Ruby... in Ruby.
I have to second this, if you use Ruby at all, Rubinius is quite fascinating to read, even if you still use MRI on a day to day basis.
Re:Read your Standard Libraries
by steveklabnik on Friday January 03, 2014 @01:06PM
(#7006922)
I tend to point people at "Eloquent Ruby" to learn how to write idiomatic Ruby code, rather than point them at actual projects.
Funnily enough, the first chapter recommends the standard library as idiomatic Ruby code.
Re:Read your Standard Libraries
by steveklabnik on Friday January 03, 2014 @01:40PM
(#7007177)
Hehe. And it comes full circle. It is a few years old... I don't think the social norms of Ruby have changed all that much.
To be clear, there are good and bad parts of the standard library, just like there is all code. But much of it is basically a time capsule.
In your opinion, what are some good starting points for interested Ruby readers ?