Blog

102 posts


As a recent adopter of vim, I’ll admit I fell into a trap. I removed arrow key support in an attempt to do things the “vim way”, only to use hjkl the same way as I would have the arrow keys. I missed the point entirely, moving around the editor completely inefficiently. And I suspect… Read More


Over the last couple of days, I’ve been setting up my Macbook Air to dual boot into Ubuntu for development. Why do that, when OS X is perfectly fine for Ruby / Rails development? Because I’m a nerd. There’s also the fringe benefit of working on a similar development environment as your production environment… Because… Read More


It’s a big day today… Apple’s September 9th event, this blog’s 100th post, and perhaps most importantly, my dog Carl’s birthday! To celebrate, we’ll be talking about cleaning up nested forms in Rails with form objects. Form Objects As your application grows, your models might tend to get messy. Some people subscribe to the “fat… Read More


Nothing much code-wise this week, except … RIP my GitHub streak. When I started this Rails journey, I made a personal commitment to tackle a full 365 days of developing, using GitHub’s contribution graph to track my progress. Well, while I did work on some projects last night, I either forgot to push my progress… Read More


A consequence of the ease of picking up a framework such as Rails, Django, or Laravel means that outsiders to the Computer Science realm are now able to create applications with relative ease. I am certainly counted in the majority in that respect. But if you want to hang with the big boys and continue… Read More


I always wondered about the difference between :belongs_to vs :references when running ActiveRecord migrations, always chalking it up to a quirk in the framework. They do the same thing, right? Well yes, they do exactly the same thing, as a matter of fact; take a look at the Rails source: def references(*args) options = args.extract_options!… Read More


On July 31, 2014 Yukihiro “Matz” Matsumoto, the creator of Ruby, gave a talk at Ninefold in San Francisco. It’s a very enlightening talk about the future of Ruby (if that wasn’t obvious from the title), as well as Matz’s new creation, mruby, an embedded lightweight Ruby comparable to the programming language Lua. Check it… Read More