Home  >  Article  >  What does head first mean?

What does head first mean?

藏色散人
藏色散人Original
2019-05-13 11:40:273555browse

What does head first mean?

"HeadFirst Design Pattern" is a book published by China Electric Power Press in 2007. The author of this book is Eric Freeman; ElElisabeth Freeman is a writer, lecturer, and technical consultant. The product design of this book applies neurobiology, cognitive science, and learning theory, which allows this book to deeply imprint this knowledge in your mind and not be easily forgotten.

This book is written using guided teaching. With a large number of daily life stories as the background and pictures as the background, it is lively and interesting to read. The pattern confession program in the book personifies the design pattern as a guest on the program and talks about everything inside it.

This book uses UML’s class Diagram (Static Structure Diagram) extensively. The example programs in the book are all written in Java. The content introduced in this book is applicable to users of any OO language, including c and c#.

"HeadFirst Design Patterns" (Chinese version) has 14 chapters in total. Each chapter introduces several design patterns, completely covering all 23 design patterns of the Foursome version. The preface first introduces the usage of this book; the design patterns introduced in Chapter 1 to Chapter 11 are Strategy, Observer, Decorator, AbstractFactory, FactoryMethod, Singleton, Command, Adapter, Facade, TemplateMethod, Iterator, Composite, State, and Proxy.

The last three chapters are quite special. Chapter 12 introduces how to combine two or more design patterns to form a new design pattern (such as the famous MVC pattern). The author calls it a composite design pattern (this is the name created by the author, not the standard term of the foursome). ), Chapter 13 introduces how to further learn design patterns, how to discover new design patterns and other topics. As for Chapter 14, it quickly browses the design patterns that have not been introduced yet, including Bridge, Builder, ChainofResponsibility, Flyweight, Interpreter, Mediator, Memento , Prototype, Visitor.

Chapter 1 also introduces four basic concepts (abstraction, encapsulation, inheritance, polymorphism), and Chapter 1 to Chapter 9 also introduces nine principles (Principle).

Never underestimate these principles, because there are several principles behind each design pattern. Many times, when there is a dilemma during design, we must return to principles to facilitate judgment and choice. You can say it this way: principles are our goals, and design patterns are our practices.

The above is the detailed content of What does head first mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn