codahale.com٭blog

bhangra ringtonespolytonic ringtoneabsolutley free ringtonesblowing bubbles ringtonecherry eagle eye ringtone
Coda Hale lives in Berkeley, CA, where he writes about Ruby on Rails, usability, web design and development, and the occasional bit about bicycles.

Joel’s Old: Get The Hell Off My Lawn

I guess someone put a baseball through one of Old Man Spolsky’s windows, because he’s down on the sidewalk shaking his fist at those damn kids:

The lucky kids of JavaSchools are never going to get weird segfaults trying to implement pointer-based hash tables. They’re never going to go stark, raving mad trying to pack things into bits.

Now I realize that Joel’s a total ninja when it comes to software, and I can respect that. But when Grandpa’s out on the porch yelling at the neighborhood toughs wearing only a dress shirt, my sense of filial duty does not override my desire to get him to put some pants on.

Here’s why I think Joel’s call for an Asperger’s Revival is a bit daft.

(continue reading…)

2 comments »

A Rails HOWTO: Simplify Your Unit Tests

So you’ve spent a few weeks writing your Ruby on Rails application, and then you realize you’ve been spending all of your time learning about this awesome language and web development framework, and all of the automagically generated unit tests that Rails makes for you are really just stubs. Damn. You sit down and start coding, but you realize you’re writing variations on a theme: check to see if a model creates/updates/destroys correctly, etc. etc. You remember something DHH said about a TLA… that’s right! DRY!

So in the giving spirit of the ancient holiday of “Hey Where The Hell Did The Sun Go Goddamnit,” here are a few useful and flexible helper methods for streamlining those unit tests.

(continue reading…)

4 comments »

Through gritted teeth, eyes, and hubs, I said…

Forecast for Berkeley, CA: Tons of Rain
Okay God, you can stop now. We get it: rain.

As my father was driving me to Chez Hale from the train station this Thanksgiving Eve, he mentioned what preternaturally good weather we were having for late November. I agreed and said I didn’t trust it; there’s another shoe up there and it’ll drop soon enough.

Boy was I right. I’m off to overhaul my rear hub now, if you’ll excuse me. It sounds much like a peppergrinder, which I’ve been informed by various passers-by is bad.

Update (Later that night…):

I need a new front brake

Yeah, that’s my brake pads in their new, improved powder form. I’m totally ready to get a disc brake, except for the whole “affording it” thing I’ve heard so much about.

Leave a comment »