By bloid
via jessewarden.com
Published: Jan 06 2008 / 10:23
A couple months ago, I read about dpUInt, yet another unit testing framework for Flex. I got it from reading the docs, it seemed easy to add to an existing or new project, and I’m all gung ho for giving it a try. If it sucks, I know I have both FlexUnit and VisualFlexUnit as back up frameworks.
Test Driven Development practitioners are very passionate about what they do. They give off this air that my early OOP mentor’s also did, “Once you go TDD, you never go back”. The funny thing about OOP in Flash is how quickly it dies a pathetic little death when a deadline rears its head.
Comments
Gene Gotimer replied ago:
I'm not as diligent about TDD as I would like to be. When I think through the design of a method or piece of code, I often have problems thinking in terms of the test.
But every time I do remember or convince myself to do TDD, I am reminded why the effort to change my mindset is worth it. A clear boundary on "done" is set first, and regression tests are written early. I end up spending less time mucking around with different interfaces to a method, different ways to do things within the method, and I know I'm done right away. And since my unit tests for the rest of the code are already written, I can be confident I haven't broken anything else. Or I have the confidence to change other code knowing that I'll be okay as long as their tests still pass.
But it is a mindset change.
Voters For This Link (12)
Voters Against This Link (3)