Latest Tweets
- Despite assurances from AT&T and long discussions, U-Verse schedules us 3 1/2 weeks out; leaving us w/o Internet for that period. Really?! 6 days ago
- @DavidHainlin I only have so many git merges left in me... > Probably because we're due for some new VCS by now, right? Ha... 1 week ago
- Worse than it looks. I had to become a contortionist to get in my car. More and more, I find that people just suck http://twitpic.com/2h0271 1 week ago
- So I actually locked up the brakes, not the breaks...I apologize. :) 1 week ago
- Locked up the breaks coming home after a woman pulled out in front of me. If a driver had a way to apologize, would any do it? She didn't. 1 week ago
- More updates...
-
Recent Posts
Recent Comments
Archives
Categories
Monthly Archives: August 2007
Preserve Semantics in Callbacks
Many people tend to place logic within a method named for the callback (e.g. after_destroy). This works fine, but tends to be less maintainable, in my opinion. You basically have a method called after_destroy (or whatever), but you don’t readily … Continue reading
Posted in Ruby, Ruby on Rails
1 Comment
Using Constants in Rails Models
One of my pet peeves in code is the absence of constants and thus the prevalence of “magic numbers” in their place. Constants add a touch of readability and semantic meaning and magnify the maintainability of the code. As a … Continue reading
Posted in Ruby, Ruby on Rails
6 Comments