News for hackers. Stuff that matters.
Re:Read your Standard Libraries by steveklabnik on Friday January 03, 2014 @12:49PM (#7006801)
This is generally great advice, but the Ruby standard library isn't exactly the best to read if you want to learn. Don't get me wrong, it works, but the code is generally very, very old. Nobody knew how to write good Ruby code back then.
Re:Read your Standard Libraries by netghost on Friday January 03, 2014 @03:31PM (#7007884)
It may not be the best place to learn current idioms, but it is still worthwhile if you want to really understand the tools you are using.
Re:Read your Standard Libraries by yawboakye on Friday January 03, 2014 @09:45PM (#7009727)
If it has not been rewritten using modern (good) Ruby style I guess it's still turning a perfect cartwheel. While reading Eloquent Ruby (by Russ Olsen) Ruby's set standard library was recommended for source reading. It was an awesome read! I think standard libraries are really good at demonstrating at least two things: the language's preferred coding style and implementation of data structures and algorithms using the language's primitives. For these 2 reasons, they're still worth reading, imo.
Re:Read your Standard Libraries by bcjordan on Friday January 03, 2014 @12:53PM (#7006832)
Ah, will certainly trust your assessment there. :)

In your opinion, what are some good starting points for interested Ruby readers ?

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.

https://github.com/rubinius/rubinius

Re:Read your Standard Libraries by netghost on Friday January 03, 2014 @03:33PM (#7007895)
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.
Re:Read your Standard Libraries by haukur on Friday January 03, 2014 @01:29PM (#7007096)
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.

Re:Read your Standard Libraries by wasd on Friday January 03, 2014 @02:28PM (#7007505)
How do you feel about the author's other book, Design Patterns in Ruby?
Re:Read your Standard Libraries by jurassic on Friday January 03, 2014 @06:45PM (#7009039)
I loved it. Beyond pure technical chops, Russ Olsen is a great writer which makes his books stand out to me from other programming books I've read. In Design Patterns in Ruby each chapter handles a different pattern with a simple example that's easy to understand. And at the end of each chapter Olsen points out where that pattern is used "in the wild" in popular ruby projects if you'd like to see a larger example.
Re:Read your Standard Libraries by steveklabnik on Friday January 03, 2014 @02:37PM (#7007564)
I have not read it.
Re:Read your Standard Libraries by mjbellantoni on Friday January 03, 2014 @02:24PM (#7007475)
I came here to write this comment!