Head First Design Patterns (Paperback)

Eric Freeman, Bert Bates, Kathy Sierra, Elisabeth Robson




You're not alone.

At any given moment, somewhere in the world someone struggles with the same software design problems you have. You know you don't want to reinvent the wheel (or worse, a flat tire), so you look to Design Patterns--the lessons learned by those who've 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 don't 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 Java's 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 you're 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. You'll easily counter with your deep understanding of why Singleton isn't 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, you'll avoid the embarrassment of thinking Decorator is something from the "Trading Spaces" show. Best of all, in a way that won't put you to sleep! We think your time is too important (and too short) to spend it struggling with academic texts.

If you've 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.



在世界的某個角落,總有人在與你面臨相同的軟體設計問題奮鬥。你知道你不想重新發明輪子(或更糟糕的是,一個爆胎),所以你尋求設計模式的幫助 - 這是那些面臨相同問題的人所學到的經驗教訓。通過設計模式,你可以利用他人的最佳實踐和經驗,這樣你就可以把時間花在其他事情上。更具挑戰性的事情。更複雜的事情。更有趣的事情。

你想學習重要的模式 - 為什麼要使用它們,何時使用它們,如何使用它們(以及何時不使用它們)。但你不僅僅想在書中看到模式的樣子,你想知道它們在「野外」中是什麼樣子。在它們的原生環境中。換句話說,在真實世界的應用中。你還想學習模式在Java API中的使用方式,以及如何在自己的代碼中利用Java內置的模式支持。



通過《Head First設計模式》,你將避免認為Decorator是《Trading Spaces》節目中的某個東西而尷尬。最重要的是,這本書的形式設計得符合你的大腦運作方式,以視覺豐富的方式呈現。利用最新的神經生物學、認知科學和學習理論研究,《Head First設計模式》將以一種讓你記住的方式將模式載入你的大腦。以一種讓你立即應用它們的方式。以一種讓你更擅長解決軟體設計問題,並與團隊中的其他人更好地談論模式的方式。