O'Reilly logo

Extreme Programming Adventures in C# by Ron Jeffries

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Extracting the Model

Our XMLNotepad spike worked well enough to make us think we should start putting it in the right shape. That didn’t turn out quite like we expected...

Where We Were

We had a little XMLNotepad prototype working: we could edit in the window, and when we hit Enter, we got a new section with paired P tags. We hadn’t yet put the cursor where we wanted it, between the tags, but we knew how to do that. Now we thought we should put the code in better order. Here’s what it looked like when we started, with a few debugging additions compared to the last time you saw the code:

using System; using System.Drawing; using System.Windows.Forms; using Nunit.Framework; using System.Collections; using System.Text.RegularExpressions; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required