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

Get Java™ Design Patterns: A Tutorial 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.