3
11
2005
Configure this
Last night I was spelunking through the automatically generated code of a Rails application I’m writing. I did a double-take when I came across the following line in ./config/environments/development.rb:
config.whiny_nils = true
You’d think that a Danish hacker would choose names for his Ruby attribute accessors that didn’t insult so many Swedes. Then again, maybe not; I know from personal experience that insulting Swedes is a national pastime for Norwegians, so why not for Danes, too?
In defense of my Swedish ancestors I’m going to start submitting Rails patches that will offend the cream of Danish society:
config.whiny_niels = true

JA ja ja, that’s weird :-)
The funniest thing here is that you say that you “spelunk” through code!
I didn’t think about how this would read if you didn’t know about Ruby’s keyword nil.