Chapter 18. A Simple Feature Teaches Some Lessons
Our customer discovered the need to insert a return inside a <pre> tag. Implementing this turns out to be fairly simple, but we learn some lessons about how to test and build even a simple feature.
Shift Return Inside <pre> Tags
When we built the <pre> tag, the customer discovered there was no way to type in multiple lines of code, which is kind of the point of the tag, so they’ve asked us for a way to do that. We suggested, and they agreed, or maybe it was the other way around, that the standard way in Microsoft Windows to enter a return without any special action is to type Shift+Enter. That’s what we’ll do. The basic plan will be to write a programmer test, make it work, and then write a customer ...
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.