“If you’re still writing for loops, stop; there’s a better way.” In Ruby, for loops should be the exception. Make sure you know all about the functionality offered by the Enumerable module, which has methods for iterating through, sorting and searching arrays, hashes and other collection-type objects.
An Intro to Ruby’s “Enumerable” Module
Previous post: The Evolution of the TSOT Office
Next post: We Don’t Need No Steenking GUI!

{ 0 comments… add one now }