Tests Are Divine
One of the first posts on my old journal (which I still don't know if I want to copy the entries here) was entitled Tests are Heavenly. In that post I wrote about how I started adopting TDD for administration purposes.
Recently I've been getting CPANTS reports (<3 CPANTS!) on my WWW::FMyLife module. At first I thought my tests were off. Yesterday I finally got down to take a closer look at the reports and code. I tried some variable dumps (my favorite debugging method) of the data I was receiving from FMyLife.com in the module. Then I noticed that FMyLife were sending me different data than they are suppose to. They aren't following their API correctly.
Testing helped me realize it, and be able to fend against it, if I wanted to. That's pretty awesome. I'm assuming a lot of applications out there (mine is only a module, and still in the works) don't really know they're receiving improper structure at times (which might actually screw things up). I, on the other hand, already know this (just by the automated testing) and already fixed it.
Testing sure is awesome! :)
The editor in blogs.perl.org (MT) sure would be cool if there was a link button that links to modules on CPAN. Can't be difficult to add. I'm willing to do it.
Apologies for David Golden for confusing him with David Cross. Two Davids, both cool, it was bound to happen. :)