[Edu-sig] Game of Life in Sketchup; unittesting and TDD (pedagogy)

Corey Richardson kb1pkl at aim.com
Tue May 10 03:06:56 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/09/2011 07:11 PM, Kirby Urner wrote:
> It's like doctest but different in that we're not showing interactions,
> though we could be.

I saw in #python that someone was working on making doctest even more
useful, and having some of the features of unittest (and I believe he
was working on running doctests from unittests). I don't mind doctest in
smaller quantities, and sphinx makes it look good on the user-facing side.

When I'm teaching newcommers I used to avoid testing until the last
possible moment (even in my AP CS class we never once had to have formal
tests for our code...) to cover it, and it was scanty. Now I usually
teach mostly full TDD with the doctest module, and then show them
unittest later on. I think it makes the docstrings look ugly, but
testing is more important than aesthetics.

my 2c,
- -- 
Corey Richardson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNyI+wAAoJEAFAbo/KNFvpyXoIAIjwW0cJh9/llWj4ZsLmL9YE
IbnK9wHTurJFdMRt2l4FH1IlMRSBRzH+m5FBSVT/dfhgu4BA+BWDBx4Tif8ywt45
EIj1ratgD3qb7BPnBMA5f47ZAUlFMOKnFD8pUJibTYUM8uU5k7/7j9KSijj2Gwx4
LAjr9ESZV8cDrFh/wMZxWE5SuMqoKmQPBz7JLh+x54MJ2hdhwApcPOIgWSfMNxhX
/8yMmUcOUcgnFJh85dMGhJ3fZA1xtgHmy1N9hNF/f0lP3FIY+hcLyrP7WKwLOzw+
wI5HF8hK663Fk9M7SZQe4Wu4jZKvvGIYJt1ag4tuFDpfW2jcaYzOWYUALhriZQ0=
=4VOF
-----END PGP SIGNATURE-----


More information about the Edu-sig mailing list