Designing with Objects: Object-Oriented Design Patterns Explained with Stories from Harry Potter Paperback

Avinash C. Kak

  • 出版商: Wiley
  • 出版日期: 2015-02-09
  • 售價: $3,340
  • 貴賓價: 9.5$3,173
  • 語言: 英文
  • 頁數: 504
  • 裝訂: Paperback
  • ISBN: 1118581202
  • ISBN-13: 9781118581209
  • 相關分類: Object-orientedDesign Pattern
  • 海外代購書籍(需單獨結帳)
    無現貨庫存(No stock available)


Here is a book that takes the sting out of learning object-oriented design patterns! Using vignettes from the fictional world of Harry Potter, author Avinash C. Kak provides a refreshing alternative to the typically abstract and dry object-oriented design literature.

Designing with Objects is unique. It explains design patterns using the short-story medium instead of sterile examples. It is the third volume in a trilogy by Avinash C. Kak, following Programming with Objects (Wiley, 2003) and Scripting with Objects (Wiley, 2008). Designing with Objects confronts how difficult it is for students to learn complex patterns based on conventional scenarios that they may not be able to relate to. In contrast, it shows that stories from the fictional world of Harry Potter provide highly relatable and engaging models. After explaining core notions in a pattern and its typical use in real-world applications, each chapter shows how a pattern can be mapped to a Harry Potter story. The next step is an explanation of the pattern through its Java implementation. The following patterns appear in three sections: Abstract Factory, Builder, Factory Method, Prototype, and Singleton; Adapter, Bridge, Composite, Decorator, Facade, Flyweight, and Proxy; and the Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor. For readers’ use, Java code for each pattern is included in the book’s companion website.

  • All code examples in the book are available for download on a companion website with resources for readers and instructors.
  • A refreshing alternative to the abstract and dry explanations of the object-oriented design patterns in much of the existing literature on the subject.
  • In 24 chapters, Designing with Objects explains well-known design patterns by relating them to stories from the fictional Harry Potter series


這是一本書,它以哈利波特的虛構世界為背景,為學習面向對象設計模式提供了一種新的方式。作者Avinash C. Kak通過故事情節的方式,提供了一種與通常抽象和枯燥的面向對象設計文獻不同的解釋方式。

《Designing with Objects》是獨一無二的。它使用短篇小說的形式來解釋設計模式,而不是使用乏味的例子。這是Avinash C. Kak的三部曲中的第三卷,前兩卷分別是《Programming with Objects》(Wiley,2003)和《Scripting with Objects》(Wiley,2008)。《Designing with Objects》面對學生們學習基於傳統場景的複雜模式有多困難的問題,而這些場景他們可能無法與之產生共鳴。相比之下,它展示了哈利波特的虛構世界中的故事提供了高度可關聯和引人入勝的模型。在解釋模式的核心概念及其在現實應用中的典型用法之後,每一章節都展示了如何將模式映射到哈利波特的故事中。接下來是通過Java實現來解釋該模式。以下模式分為三個部分:抽象工廠、建造者、工廠方法、原型和單例;適配器、橋接器、組合、裝飾器、外觀、享元和代理;以及責任鏈、命令、解釋器、迭代器、中介者、備忘錄、觀察者、狀態、策略、模板方法和訪問者。書中附帶的網站中包含每個模式的Java代碼,供讀者使用。

書中的所有代碼示例都可以在附帶網站上下載,該網站還提供讀者和教師的相關資源。這本書是對現有文獻中對面向對象設計模式的抽象和枯燥解釋的一種清新替代方式。《Designing with Objects》通過將知名的設計模式與哈利波特系列的故事相關聯,以24章的篇幅進行解釋。