January 2009
2 posts
HasAvatar: Defining an Application Vocabulary
One of my favorite techniques to DRY up a Rails application is to pull out common functionality into a simple “vocabularized method,” by which I mean a simple descriptive method call that can be made from within your model or controller definition. For instance, in some applications I might have multiple models that have an “avatar.” These avatars all behave the same and should do the same things...
Jan 28th
Twitter Search Plus: Find Replies Inline With...
Last night after watching the Lost premiere I had a question to which I was having a hard time finding the answer. The show had just ended and I wanted to know (tiny spoiler alert) who the woman Benjamin Linus was talking to at the end of the episode was. Google was no help (the episode had finished mere minutes before) so I turned to Twitter for some real-time searching. By searching for lost...
Jan 22nd