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 28. Oh No! Undo!

Everyone thinks that if you don’t plan ahead—and code ahead—for things like "undo," you’re doomed. Are we doomed?

The Final Exam

One of the biggest concerns with incremental development, such as we’ve been practicing in this book, is that there may be "cross-cutting" concerns that the design will not easily accommodate, resulting in a lot more work than if one had done "more" design. A favorite example, first raised to me by Gary Pollice of Rational, is "What if you’re writing an editor, and you don’t plan for Undo, and then they want it?"

Well, I won’t lie to you, Chet and I knew we were going to ask for Undo at the end of this exercise. But we have tried hard not to design for it or plan for it. You’ve been along with us, ...

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