Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posts from December 2006

BDD in Rails - test/spec and rspec

I've been playing a bit with test/spec lately in attempts to start doing more BDD. I've been following RSpec, the better known Ruby BDD library for awhile, but decided against it since it just doesn't look practical for use in an established project with around ~400 test cases. It also seems that development [...]


Contegix is Amazing. Plus Thoughts on Rails Hosting

I think I've raved before about our experiences at Seeking Alpha with Contegix for our hosting before, but I'm going to do it some more. As of late we've been having problems with our outgoing email for subscription being tarpitted or even blacklisted by certain well known public email companies. Obviously, this is [...]


Dear Gap.com: Watch those divide by zero errors

Seen a couple days ago while shopping online buy a coat for my wife:

Is saving "up to not a number" a good thing?


Ruby on Rails for Java Programmers - PDF finally uploaded

About seven months I did a presentation for the various Wisconsin Java User Groups introducing Ruby and Rails to Java programmers. It was a nice, friendly presentation comparing code between Ruby and Java, and I had some fun discussions with some of the attendees looking to sneak Ruby into their Java shops.
When I posted [...]


The Ruby Way, 2nd Edition, and a gotcha

This review of the The Ruby Way, Second Edition mentions one of Ruby's fun little corners. To illustrate, what is the value of "doop" after this code?

x = true
y = false
doop = y or x

The correct answer is "false" because the "and" and "or" operators in Ruby have lower precedence then the assignment operator. [...]


Ruby for Netbeans? Wha Happened?!

Tor Norbye is about the last person I'd guess would be pushing the state of Ruby IDE's. But he is. If you ever listen to the Java Posse, he doesn't even seem to like dynamic languages. Or maybe its just that he seems to really like statically typed languages. Maybe they [...]