06 April 2009

You can't ignore types

Otaku, Cedric's weblog: You can't ignore the types
Dynamic enthusiasts are convinced that they can ignore this aspect of development altogether, but it always comes back to bite you, either when

* you write tests for your code
* you try to refactor it
* somebody else needs to modify it
* or simply when someone needs to use your code

Eventually, you look at an object and you have to figure out what methods or messages it responds to, and I find that this problem is much easier to solve when the answer is in the source code in a form that can be enforced by the compiler.