Wow, automated tests are saving my ass right now
Monday, February 8th, 2010 01:16 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
When I first did renames, I didn't have the concept of a rename token object -- I had the shop item, and then I was doing a bunch of stuff directly in DW::Rename. At some point, I rethought, and encapsulated some of that logic into a new class DW::RenameToken, and I had to do a lot of tweaks to what I had already done to accommodate it.
I'm so *absolutely grateful* that
szabgab did such a job towards making existing tests usable, because that put tests in mind when I first started doing the renames module, and I felt obliged to take the time to wrote a few simple tests.
Now the tests are failing, and in all the ways that point out to me where my old assumptions no longer bear weight under the new/tweaked code. They have paid for themselves many times over.
Now how do we convince others to write more of these things? :-)
I'm so *absolutely grateful* that
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Now the tests are failing, and in all the ways that point out to me where my old assumptions no longer bear weight under the new/tweaked code. They have paid for themselves many times over.
Now how do we convince others to write more of these things? :-)
no subject
Date: 2010-02-07 06:17 pm (UTC)no subject
Date: 2010-02-09 02:26 pm (UTC)Hmmm, I like the sound of that. More room to fail without hurting anyone/anything!
no subject
Date: 2010-02-07 07:34 pm (UTC)no subject
Date: 2010-02-09 02:29 pm (UTC)no subject
Date: 2010-02-09 05:22 pm (UTC)no subject
Date: 2010-02-09 05:28 pm (UTC)But a better investment, and one that's less likely to fizzle out/burn out, is to try to code stuff for new modules, as you code them. I still need to sort my thoughts out for how to write something appropriate for dw_dev, but it's something I'd like to encourage!
no subject
Date: 2010-02-07 08:13 pm (UTC)Write out a detailed explanation of what tests are, how to write them, and why we should write them, suitable for a four-year-old child, so that new programmers who are Very Slow, aka me, know what the hell to do? :)
no subject
Date: 2010-02-07 09:05 pm (UTC)no subject
Date: 2010-02-09 05:36 pm (UTC)no subject
Date: 2010-02-07 08:47 pm (UTC)no subject
Date: 2010-02-09 01:17 pm (UTC)