Unit Tests Catch NPEs
software development, test driven development
A developer admitted today, after finally getting back to writing tests, that:
I’m finding a lot of places where we should have checked for nulls in our code.
I may point the developer to the Introduce Null Object Pattern tomorrow since it may avoid having to check for nulls all over the code base. Eventually we’ll write the tests first, but this is progress.
Ed Gibbs @ December 21, 2005

