Chapter 19. Dark Clouds on the Horizon

When Chet and I were pairing, we found a test that didn’t communicate. Working on that, I thought of a bigger problem. The Shift+Enter idea is breaking a fundamental assumption of our program! This could get ugly!

We’re in Big Trouble, Guys![1]

My plan today was to clean up and publish the previous chapter about Shift+Enter. I was thinking about it while showering, and I realized that we’ve got a big problem. Up until now, the basic idea of the TextModel object is that every line begins and ends with the same tag. The paragraphs aren’t made up of lots of separate lines with a <P> on the first line and a </P> on the last: they are just one line. So our InsertParagraphTag() method just inserts a line after the ...

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.