Just feel like it’s time to put some love out there.
I’ve spent the day chopping up years-old scripts that did lots of
querying and looping (pesky PHP coders trying to write Ruby…) and
have replaced tonnes of methods with a few nicely chained named_scopes
(I’m still mired in Rails2.1 for this project).
The reports run ten-times quicker; the code is a tenth of the size;
it’s all beautiful Ruby, and all’s good in the world
Thanks, Matz, DHH, Koz, Katz, et al.