Friday, July 10, 2009

Tips about Ruby / Rails Arrays

Array Subsets and Supersets
http://adzdavies.blogspot.com/2008/02/array-subsets-and-supersets.html
-- useful tip about converting arrays into sets

Understanding Ruby Arrays
http://www.techotopia.com/index.php/Understanding_Ruby_Arrays
-- general info

Range checking -- lesson: KEEP IT SIMPLE, no need to be overly clever about your code
http://stackoverflow.com/questions/699448/ruby-how-do-you-check-whether-a-range-contains-a-subset-of-another-range

No comments:

Post a Comment