[ next ] [ prev ] [ contents ] [ skip to Understanding Blocks ] [ up to Ruby Immersion ] Using Ruby

Dynamic Type Fears

But won't dynamic typing make my programs less robust?

Bob Martin

I was depending less and less on the type system for safety. My unit tests were preventing me from making type errors. The more I depended upon the unit tests, the less I depended upon the type safety of Java or C++ (my languages of choice).

[...]So I tried writing some applications in Python, and then Ruby [...]. I was not entirely surprised when I found that type issues simply never arose. My unit tests kept my code on the straight and narrow. I simply didn't need the static type checking that I had depended upon for so many years.

David Pinn

We translated [to Python] a simple IdentityMap class that I had written in Java. It was interesting to me that we did an awful lot of deleting: semi-colons, the curly braces, the primitive-wrapping objects, the variable types. Oooh, there ain't nothin' like deletin' stuff!

I think I glimpsed something today. All that rigid type safety and data hiding is like wearing army boots on the beach: nothing can bite your toes, but golly don't it feel good to just toss 'em and run barefoot.



[ next ] [ prev ] [ contents ] [ skip to Understanding Blocks ] [ up to Ruby Immersion ] Copyright 2003 by Jim Weirich.
Some Rights Reserved