The recent Aha's re the connection between unit testing and coverage 
testing have turned computer programming into an utterly absorbing 
adventure. Computer programming now feels like playing a video game!

The analogy is exact!

In a video game, you have more or less clearly defined goals. (In some 
games the goal is to figure out what the goal is.) To attain those goals, 
there is a well defined set of actions you must take. In well-crafted 
games, those actions are pleasurable in themselves, or at least not utterly 
tedious. There are also a set of obstacles, which make attaining the goals 
non-trivial. There is also usually a score that measures progress. All 
these combine to make a computer game it's own little universe.

Likewise with computer programming. You have more or less clearly defined 
goals. There are also actions, obstacles, and now, with coverage testing, a 
score. Programming is now it's own *structured* universe. The goal gets 
translated to unit tests, which all must pass with 100% coverage.

*Summary*

Unit tests translate a possibly ill-defined goal into something concrete, 
specific and well defined. The task is, by definition, complete when all 
unit tests pass with complete coverage.

Coverage testing allows uncovered code to be discarded when all relevant 
tests pass. This was a completely unexpected, and most welcome, development.

The entwined tasks of creating unit tests and ensuring complete coverage 
almost completely structures the task of programming. As a result, 
programming is *more* engaging and compelling than ever before.

Folks, this is a big deal.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/28875ae4-d8b6-46fe-8b30-13557bf8eaae%40googlegroups.com.

Reply via email to