Books and Screencasts
Objects on Rails
A developer notebook on applying classic Object-Oriented principles to Ruby on Rails projects.
-
-
Recent Posts
Recent Comments
- newz2000 on The sorry state of video hosting for WordPress blogs
- Jheriko on Underscores are stupid
- Jason Dixon on Underscores are stupid
- Zecc on Underscores are stupid
- Kurt Werle on Underscores are stupid
Archives
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
Categories
Meta
Monthly Archives: August 2010
ANN FireTower 0.0.4
For those of you using Campfire to communicate with your team, FireTower 0.0.4 is now out. New in this version is full Mac OSX support, courtesy of David T. Rogers. Install: gem install firetower Enjoy!
Posted in Uncategorized
3 Comments
Treating Arrays as Sets
Reading through the Rake source code the other day (a pastime I highly recommend), I was reminded of a technique I don’t use often enough: my_array = [:foo, :bar, :baz] my_array |= [:baz, :buz] # => [:foo, :bar, :baz, :buz] … Continue reading
Using Hashes as Caches
One of the coolest features of Ruby’s Hash class is that you can customize how it behaves when it can’t find a key. Stupid example: # Everybody knows that you can communicate with foreigners by # speaking loudly and slowly … Continue reading
“and” and “or” are like backwards statement modifiers
It occurred to me after reviewing all the feedback to my last post that despite making the connection to statement modifiers, I never directly contrasted the two. And that this might be an even simpler way of explaining the usefulness … Continue reading
Using “and” and “or” in Ruby
If you use Ruby long enough, you will discover the and and or operators. These appear at first glance to be synonyms for && and ||. You will then be tempted to use these English oprators in place of && … Continue reading

