Design Driven Tests: This is how I roll

The only way to be heard in programming these days is to start fires, and kill sacred cows. To which I'll say: Fuck. That. Here's how I write tests, and write design-driven code. I call it T&DD. It's not a prescription, it's how I work.

GEM_PATH

I'm writing this as more of a note to myself than to you. In Ruby GEM_PATH environment variable is where rubygems will look for installed gems. Hidden in in the docs is:

Why We Should (Absolutely Never) Build Software Like We Build Houses

I'm building a house and I write software for a living. So when someone showed me the article Why We Should Build Software Like We Build Houses I had to disagree.

Practice while you Play: Multiple conferences, one Talk

New isn't always better, especially when it comes to conference talks. A number of conferences have a CFP that explicitly looks for "fresh" talks that have never previously been given. My take: practice makes perfect, and repeat talks produces a better experience for attendees

Ditching Tumblr

After 2 weeks of support requests with Tumblr over the inability to see basically any code on my old blog. I'm switching to self hosting!

TIL: Symbol to Proc Trick not needed in Ruby Inject/Reduce 2.0.0

If you’ve been using Ruby for some time no doubt you’ve done something like this to sum up an array of integers:

UT on Rails

Last year I held a series of non credit Rails courses for University of Texas Students, i’m happy to announce that i’ve been granted an Adjunct Professor position at the UT and I’m teaching a for credit course in Databases and Rails. Lucky for you, i’m a sucker for online learning, so i’ll be putting all my course material online, right here.

UT on Rails

Last year I held a series of non credit Rails courses for University of Texas Students, i’m happy to announce that i’ve been granted an Adjunct Professor position at the UT and I’m teaching a for credit course in Databases and Rails. Lucky for you, i’m a sucker for online learning, so i’ll be putting all my course material online, right here.

TIL how to null out or unset an ENVIRONMENT variable in bash

Heroku compiles your app without environment variables. This is all well and good, but how do you debug a problem that only shows up when an environment variable is missing? Not just set to an empty string "".

Why Do Heroku Builds Run Without Config by Default?

I got this question awhile ago and answered in Gist form. I recently stumbled on my answer and thought it was worth sharing, so here you go:

Wicked 1.0.1 Released with Critical Security Fix

If you’re using Wicked, the easy way to build step-by-step wizards in your Rails code please update to Wicked version 1.0.1 immediately a serious security bug was patched. If you do not upgrade, an attacker may be able to view arbitrary files on your server.

If at First you don't Succeed: Retrying Bundler

What do you do when you fail at a task?

Explain Shell, from your Shell

If you aren’t massively in love with Explain Shell then you’ve not been on the internet today (or at least following the same people I do on twitter). It’s an easy way to see what a unix command does from a web interface. The web interface is great, but wouldn’t it be cool if you could open it from your command line? If someone gave you a command like tar xzvf archive.tar.gz it would be amazing to be able to run:

Prepare, Do, Test: Make your Technical Writing Shine

Don’t pump and dump information on your readers: build better community and better view numbers by following the Prepare, Do, Test pattern. Let’s back up. If you’re new to my site: I’ve been teaching Rails courses for a few years, I work with a ton of open source, and I generally get a kick out of explaining things to people. I’ve written for Rubysource, my own blog, and a fair bit of Heroku’s devcenter documentation. When writing for a technical audience I cringe when I get a comment that says “I’m stuck”, or “did it work?” and especially “what do I do next?”. To solve these problems and more I follow this framework:

Specify Different Gemfile while using Bundler

Travis has a great feature of being able to install gems using a custom Gemfile path. This lets you do things like test against multiple versions of Rails very easily. A project that uses this is sprockets-rails.

Hi Richard Thanks For The Tutorial It Is Great I Am

Maildown: Write your Rails emails in Markdown

Maildown: Write your Rails emails in Markdown

Just Wanted To Say Thanks Again For All The Lessons

Heroku API Demo

Whipped up a quick demo of the Heroku API using Sinatra and heroku-bouncer (heroku’s oauth rack middleware).