programming

Ruby: Better Hash#collect

    Today's Ruby on snuxoll's post shows you how to overcome a not-so-apparant issue with dealing ruby's Hash class, namely, using the Enumerable#collect method.

Clean 2D Arrays in Ruby

    I've recently found myself needing a simple and clean way to handle
2D arrays in ruby, so I created a Matrix class for that purpose. It's certainly not abiding by a lot of ruby style guidelines, but it's the cleanest way I can think of to handle 2D arrays.