RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

adriandz — 3 posts

http://socialtech.ca/ade/

When you use Rails' console for stuff like this:

people.each { |person| puts person.name }

You'll notice that first you get the names of people like you wanted, but then console barfs out the array of everything you are iterating through, in this case all of the people. Make it stop.
xapian works well for searching, but the documentation is not superb. This improves on that.
A short and instructive example of how studying open source code from well-tested tools and libraries can lead to immediate benefits in your own code. In this example, a technique for transforming single-item collections is extracted from Rack and examined.