Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 593 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
593
Dung lượng
7,62 MB
Nội dung
[...]... called anti -patterns, because anti -patterns can cancel out the benefits of patterns This book does not attempt to catalog anti -patterns, as the subject is well covered in other books Readers who are interested in anti -patterns may enjoy reading [BMMM98] Note Because this book is all about software patterns, they are simply referred to as patterns in the rest of this book A Brief History of Patterns The... applications of designpatterns can be applied The remaining chapters describe different sorts of patterns: ■ ■ Chapter 3 contains patterns that are fundamental in their nature These patterns can be applied to a wide variety of situations They are used by other patterns ■ ■ Chapter 4 contains patterns that describe how to organize the creation of objects in various situations ■ ■ Chapter 5 contains patterns. .. was the largest single influence on this book The DesignPatterns book is often called the “gang of four book” or GoF This book used C++ and Smalltalk for its examples, as UML did not exist when it was written UML is now widely accepted as the preferred notation for object-oriented design, so UML is the notation used in this book Visual Basic NET Design Patterns uses VB.NET for its examples The pattern... in this section Patterns that are not used in the NET Framework do not have this section in their description Code Example This section contains a code example that shows a sample implementation of a design that uses the pattern Usually, the design implemented in this section is the design described previously in the “Context” section Related Patterns This section contains a list of patterns that are... experienced programmers a common vocabulary to discuss patterns It also allows programmers who have not yet discovered a pattern to learn about the pattern Though this book includes a substantial breadth of patterns, there are additional patterns the author knows but did not have time to put in the book You, dear reader, may discover some patterns yourself Some patterns you discover may be highly specialized... Cases Object-Oriented Analysis Object-Oriented Design Chapter 3 Fundamental DesignPatterns Delegation (When Not to Use Inheritance) Synopsis Context Forces Solution Implementation Consequences NET Usage Code Example Related Patterns Interface Synopsis Context Forces Solution Implementation Delegates Constructors Consequences NET Usage Code Example Related Patterns Abstract Base Class Synopsis Context... use a divide-and-conquer approach to solving a problem ■ ■ Chapter 6 contains patterns that describe ways to combine objects into different sorts of structures ■ ■ Chapter 7 contains patterns that describe different ways of organizing behavior ■ ■ Chapter 8 contains patterns for managing concurrency Description of Patterns The patterns in this book are described using a format that includes the following... general solution ■ ■ The consequences, good and bad, of using the given solution to solve a problem ■ ■ A list of related patterns Pattern books differ in how they present this information The patterns in this book are all related to the design phase The descriptions of design phase related patterns in this book are organized into sections with the following headings: xxv xxvi Introduction Pattern Name The... to develop five patterns to guide the design of user interfaces They published a paper on them at OOPSLA-87 The paper was titled, “Using Pattern Languages for ObjectOriented Programs” In the early 1990s, four authors began work in a very influential book called DesignPatterns by Erich Gamma, Richard Helm, John Vlissides, and Ralph Johnson (AddisonWesley) It popularized the idea of patterns and was... This book focuses on designpatterns that are used at the micro-architectural level The first two chapters contain material to help you understand the patterns presented in the chapters that follow Introduction ■ ■ Chapter 1 begins with a description of the subset of UML used in this book ■ ■ Chapter 2 contains an overview of the software life cycle, to provide a context in which the patterns are used . ii
Mark Grand
Brad Merrill
Visual Basic
®
Design Patterns
01_268607 ffirs.qxd 6/10/05 10:22 PM Page iii
Visual Basic
®
Design Patterns
Published by
Wiley Publishing,. alt=""
Visual Basic
®
Design Patterns
01_268607 ffirs.qxd 6/10/05 10:22 PM Page i
01_268607 ffirs.qxd 6/10/05 10:22 PM Page ii
Mark Grand
Brad Merrill
Visual