heusserm (email not shown publicly)
http://www.xndev.com/AOL IM: MatthewHeusser (
Add Buddy, Send Message)
Matt Heusser is JAPH and an
XP-Er [xprogramming.com]. (The Methodology, not the Operating System.) Right now, he's doing a lot of Test Driven Development in Perl.
Oh, the irony... (Score:2)
Test early, test often, test always.
Testing Enables Refactoring (Score:2, Interesting)
Though a test would catch that it doesn't compile (as Randal points out), it would also allow you to change it later to something like this:
It's okay if you don't want to do that, but I'd prefer it to the regex.
Re:Testing Enables Refactoring (Score:1)
tr///version is necessarily fragile because the programmer has to enumerate all possible kinds of white space.Re:Testing Enables Refactoring (Score:1)
You're right, it probably fails with Unicode. Thankfully, I don't have a story card for handling Unicode. :)
Re:Testing Enables Refactoring (Score:1)
breaking (Score:2)
What happens if you get undef?