O'Reilly logo

Java™ Design Patterns: A Tutorial by James W. Cooper

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 35. Herb's Text Processing Tangle

Herb was trying to rationalize a series of programs that processed text. Each of several programs operated on a stream of text and marked it in various ways: names, phrases, places, organizations, and so on. The trouble was that each of the programs made assumptions that other programs had already operated on the text stream. This made it difficult to add to or change any of the programs in any significant way.

He went to Sandy, who had just finished using Patterns in her project with Arthur. "I hear you're now an expert on design patterns," Herb said. "Is there a pattern or two in that list that can help me?"

"There might be," Sandy said. "But you should recognize that they aren't magic bullets, and you ...

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