Search the web
Sign In
New User? Sign Up
TestFirstUserInterfaces
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: [TDD] TDD:ing MFC   Message List  
Reply | Forward Message #988 of 1052 |
Re: [TDD] TDD:ing MFC

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




Fri Jun 15, 2007 12:02 pm

phlipcpp
Offline Offline
Send Email Send Email

Forward
Message #988 of 1052 |
Expand Messages Author Sort by Date

... MFC has major architectural flaws that resist clean testing. One good policy is to use "in vivo" testing, per the book /Working Effictively with Legacy ...
Phlip
phlipcpp
Offline Send Email
Jun 15, 2007
1:40 am

... 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....
Phlip
phlipcpp
Offline Send Email
Jun 15, 2007
12:03 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help