Head First Design Patterns

Head First Design Patterns


Yazar Eric Freeman Elisabeth Robson Bert Bates Kathy Sierra
Yayınevi OReilly Media
ISBN 9780596007126
Baskı yılı 2004
Sayfa sayısı 694
Ağırlık 1.22 kg
Stok durumu Tükendi   

Youre not alone. At any given moment, somewhere in the world someone struggles with the same software design problems you have. You know you dont want to reinvent the wheel (or worse, a flat tire), so you look to Design Patterns--the lessons learned by those whove faced the same problems. With Design Patterns, you get to take advantage of the best practices and experience of others, so that you can spend your time on...something else. Something more challenging. Something more complex. Something more fun. You want to learn about the patterns that matter--why to use them, when to use them, how to use them (and when NOT to use them). But you dont just want to see how patterns look in a book, you want to know how they look "in the wild". In their native environment. In other words, in real world applications. You also want to learn how patterns are used in the Java API, and how to exploit Javas built-in pattern support in your own code. You want to learn the real OO design principles and why everything your boss told you about inheritance might be wrong (and what to do instead). You want to learn how those principles will help the next time youre up a creek without a design paddle pattern. Most importantly, you want to learn the "secret language" of Design Patterns so that you can hold your own with your co-worker (and impress cocktail party guests) when he casually mentions his stunningly clever use of Command, Facade, Proxy, and Factory in between sips of a martini. Youll easily counter with your deep understanding of why Singleton isnt as simple as it sounds, how the Factory is so often misunderstood, or on the real relationship between Decorator, Facade and Adapter. With Head First Design Patterns, youll avoid the embarrassment of thinking Decorator is something from the "Trading Spaces" show. Best of all, in a way that wont put you to sleep! We think your time is too important (and too short) to spend it struggling with academic texts. If youve read a Head First book, you know what to expect--a visually-rich format designed for the way your brain works. Using the latest research in neurobiology, cognitive science, and learning theory, Head First Design Patterns will load patterns into your brain in a way that sticks. In a way that lets you put them to work immediately. In a way that makes you better at solving software design problems, and better at speaking the language of patterns with others on your team.
1 Welcome to design patterns : an introduction 1
2 Keeping your objects in the know : the observer pattern 37
3 Decorating objects : the decorator pattern 79
4 Baking with OO goodness : the factory pattern 109
5 One of a kind objects : the Singleton pattern 169
6 Encapsulating invocation : the command pattern 191
7 Being adaptive : the adapter and facade patterns 235
8 Encapsulating algorithms : the template method pattern 275
9 Well-managed collections : the iterator and composite patterns 315
10 The state of things : the state pattern 385
11 Controlling object access : the proxy pattern 429
12 Patterns of patterns : compound patterns 499
13 Patterns in the real world : better living with patterns 577
14 App. : leftover patterns 611