[Edu-sig] Game of Life in Sketchup; unittesting and TDD (pedagogy)
kb1pkl at aim.com
Tue May 10 04:09:52 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
On 05/09/2011 09:46 PM, Kirby Urner wrote:
> Run the module top-level, triggering _test, and do so again and again,
> as contingencies and corner cases get tested. Leave a representative
> set of tests behind as evidence of your audit. You may write a more
> formal unittesting framework later, but there's no guarantee that's
> something to release with the module. The _test( ) function serves
> as an "on board payload" while the unittest framework stays behind
> "near the launch pad".
> The goal is to put the learner in the role of Quality Assurance tester,
> at least at first. Eat your own dog food. Keep the code to be tested
> and the tester code together, but that doesn't have to mean doctest.
I really like that approach, I think I'll start using it myself! Thanks
for imparting your wisdom.
And about the Game of Life:
I'm starting to pick up a little VBA (eugh it's gross) and plan on
implementing (if I can, of course) the Game of Life in an excel
spreadsheet! Now that I think about it, I wonder if libreoffice has
scripting and what it is...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the Edu-sig