Simple Feature Flags for Rails + Mongoid

Selectively rolling out new bits of an app using feature flags isn’t exactly a new idea. But being reminded of it during the keynote preceding the overall awesomeness of Heroku’s developer conference last week, right … Read more →

Coffeescript: Organizing Classes In Separate Files

Coffeescript is so hot right now and everyone loves it and so do I. The syntax for creating classes without having to use prototype.whatever() is a joyous abstraction the more I get into it. Read more →

Ruby: Do Something To X Items With first(x)

Learning Ruby (even after a year-and-some I’m constantly learning) means I get to enjoy a lot of Holy Shit That Was So Easy! moments like this one. Read more →

Git: Stashing

There have been a lot of times when I’m caught in middle of getting ‘er done on some fix or feature and need to update the branch I’m working on with someone else’s work. I usually try to git pull origin whatever and then I’m rudely reminded as the merge fails that I have one or more dirty, dirty files with uncommitted changes. Read more →

Git: Removing Individual Commits With Rebase

I was pretty much scared completely shitless of git rebase for the longest time since it’s really powerful and in the wrong hands (mine) could cause some serious damage. Read more →

jQuery: DOM Element Existence

I probably have asked Google a thousand times how to check whether a DOM element exists. Read more →

I Got A Lot To Teach, But Even More To Learn

TL;DR: I never remember anything, so in an attempt to stop forgetting I’m going to start posting code and design hints and hacks as I discover them, even when they’re easy or old or obvious. … Read more →

Upgrading To Lion

I just upgraded my Macbook to Lion because I wanted to turn my computer into a big iPhone and because I was jealous of the sexy scrollbars that everyone around me was starting to have. … Read more →