Latest Tweets
- A guy dies and its legitimate news on CNN. And then non-contributing trolls haunt the comments. People suck. http://t.co/DstUHdEp 7 hrs ago
- If you are not personalizing your LinkedIn connection invitations, you are doing it wrong. Goes double if you hardly know the invitee. 1 day ago
- Lately the days where I kick maximum ass are the days I work from home. Productivity is in inverse proportion to time spent in-office. 1 day ago
- Suzanne scored us two tickets to see Eddie Vedder in Dallas in late April. Never seen Pearl Jam or Eddie, so this is pretty exciting! 1 day ago
- Frustrating day in software. I wonder sometimes what a career in sports marketing or journalism would have been like. Too late now. 1 day 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