Donaldson, John (GEO) wrote:
> not specific to MFC, but still worth bearing in mind if you haven't
> already is make the presentation layer as thin as possible. Apply the
> "Humble Dialog" principle. That way you can disentangle yourself from the
> gory details of MFC quickly.
Modulo the legacy implications.
Tip: Find the lowest-level functions you can, maybe things as simple as a
glorified strcat(), and write unit tests on them.
Put the unit tests into a suite, and link this from both your main app,
using
the /in vivo/ test technique, _and_ into a console-only test program.
Now slowly but relentlessly put as many lines of code under the command of
tests in the console-ready suites, so eventually the console-only test
program does the most work.
--
Phlip
http://www.oreilly.com/catalog/9780596510657/
"Test Driven Ajax (on Rails)"
assert_xpath, assert_javascript, & assert_ajax