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

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