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; ...

Get Extreme Programming Adventures in C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.