- Shopping Bag ( 0 items )
- Spend $25, Get FREE SHIPPING
List Price
$64.99
Textbook Details
Used & New From our Trusted Marketplace Sellers
To try again, please visit the B&N Marketplace.
Customer Rating:
See Detailed Ratings
C# Design Patterns demonstrates 23 different design patterns which are very useful in object-oriented programming. As the name of the title implies, this particular books focuses on showing these design patterns in the C# language, much like the author, James Cooper, has previously done for other languages such as Java and Visual Basic. If I had to rate the book overall, I would give it an "average"...
Design patterns are elegant, adaptable, and reusable solutions to everyday software development problems. Programmers use design patterns to organize objects in programs, making them easier to write and modify. C# Design Patterns: A Tutorial is a practical guide to writing C# programs using the most common patterns.
This tutorial begins with clear and concise introductions to C#, object-oriented programming and inheritance, and UML diagrams. Each chapter that follows describes one of twenty-three design patterns, recommends when to use it, and explains the impact that it will have on the larger design. The use of every pattern is demonstrated with simple example programs. These programs are illustrated with screen shots and UML diagrams displaying how the classes interact. Each of these programs is available on the companion CD-ROM and can be run, examined, edited, and applied.
Design patterns will have an immediate impact on your work as you learn the following:
Design patterns will not only enhance your productivity, but once you see how quickly and easily object-oriented code can be recycled, they will become an everyday part of your C# programming.
James W. Cooper is a research staff member in the Advanced Information Retrieval and Analysis Department at the IBM Thomas J. Watson Research Center. He is also a columnist for Java Pro magazine and a reviewer for Visual Basic Programmer's Journal. He has published 14 books, which include Principles of Object-Oriented Programming Using Java 1.1 (Ventana) and The Visual Basic Programmer's Guide to Java (Ventana).
0201844532AB05132002
Loading...| Preface | ||
| Acknowledgments | ||
| Pt. I | Object-Oriented Programming in C# | 1 |
| Ch. 1 | What Are Design Patterns? | 3 |
| Ch. 2 | Syntax of the C# Language | 11 |
| Ch. 3 | Writing Windows C# Programs | 29 |
| Ch. 4 | Using Classes and Objects in C# | 43 |
| Ch. 5 | Inheritance | 65 |
| Ch. 6 | UML Diagrams | 81 |
| Ch. 7 | Arrays, Files, and Exceptions in C# | 87 |
| Pt. 2 | Creational Patterns | 97 |
| Ch. 8 | The Simple Factory Pattern | 99 |
| Ch. 9 | The Factory Method | 107 |
| Ch. 10 | The Abstract Factory Pattern | 115 |
| Ch. 11 | The Singleton Pattern | 123 |
| Ch. 12 | The Builder Pattern | 129 |
| Ch. 13 | The Prototype Pattern | 141 |
| Pt. 3 | Structural Patterns | 155 |
| Ch. 14 | The Adapter Pattern | 157 |
| Ch. 15 | The Bridge Pattern | 169 |
| Ch. 16 | The Composite Pattern | 179 |
| Ch. 17 | The Decorator Pattern | 191 |
| Ch. 18 | The Facade Pattern | 199 |
| Ch. 19 | The Flyweight Pattern | 223 |
| Ch. 20 | The Proxy Pattern | 233 |
| Pt. 4 | Behavioral Patterns | 239 |
| Ch. 21 | Chain of Responsibility | 241 |
| Ch. 22 | The Command Pattern | 255 |
| Ch. 23 | The Interpreter Pattern | 269 |
| Ch. 24 | The Iterator Pattern | 283 |
| Ch. 25 | The Mediator Patterns | 291 |
| Ch. 26 | The Memento Pattern | 301 |
| Ch. 27 | The Observer Pattern | 313 |
| Ch. 28 | The State Pattern | 321 |
| Ch. 29 | The Strategy Pattern | 337 |
| Ch. 30 | The Template Method Pattern | 345 |
| Ch. 31 | The Visitor Pattern | 353 |
| Bibliography | 365 | |
| Index | 367 |
This is a practical book that tells you how to write C# programs using some of the most common design patterns. It also serves as a quick introduction to programming in the new C# language. The pattern discussions are structured as a series of short chapters, each describing a design pattern and giving one or more complete working, visual example programs that use that pattern. Each chapter also includes UML diagrams illustrating how the classes interact.
This book is not a "companion" book to the well-known Design Patterns text by the "Gang of Four." Instead, it is a tutorial for people who want to learn what design patterns are about and how to use them in their work. You do not have to have read Design Patterns to read this book, but when you are done here you may well want to read or reread it to gain additional insights.
In this book, you will learn that design patterns are frequently used ways of organizing objects in your programs to make them easier to write and modify. You'll also see that by familiarizing yourself with them, you've gained some valuable vocabulary for discussing how your programs are constructed.
People come to appreciate design patterns in different waysfrom the highly theoretical to the intensely practicaland when they finally see the great power of these patterns, an "Aha!" moment occurs. Usually this moment means that you suddenly have an internal picture of how that pattern can help you in your work.
In this book, we try to help you form that conceptual idea, or gestalt, by describing the pattern in as many ways as possible. The book is organized into six main sections: an introductorydescription, an introduction to C#, and descriptions of patterns, grouped as creational, structural, and behavioral.
For each pattern, we start with a brief verbal description and then build simple example programs. Each of these examples is a visual program that you can run and examine to make the pattern as concrete a concept as possible. All of the example programs and their variations are on the companion CD-ROM, where you run them, change them, and see how the variations you create work.
Since each of the examples consists of a number of C# files for each of the classes we use in that example, we provide a C# project file for each example and place each example in a separate subdirectory to prevent any confusion. This book assumes you have and will be using a copy of Visual Studio.NET. This product comes in several versions: we used the Professional Edition in developing the code samples.
If you leaf through the book, you'll see screen shots of the programs we developed to illustrate the design patterns, providing yet another way to reinforce your learning of these patterns. In addition, you'll see UML diagrams of these programs, illustrating the interactions between classes in yet another way. UML diagrams are just simple box and arrow illustrations of classes and their inheritance structure, where arrows point to parent classes, and dotted arrows point to interfaces. And if you're not yet familiar with UML, we provide a simple introduction in the second chapter.
When you finish this book, you'll be comfortable with the basics of design patterns and will be able to start using them in your day-to-day C# programming work.
James W. CooperThis is a practical book that tells you how to write C# programs using some of the most common design patterns. It also serves as a quick introduction to programming in the new C# language. The pattern discussions are structured as a series of short chapters, each describing a design pattern and giving one or more complete working, visual example programs that use that pattern. Each chapter also includes UML diagrams illustrating how the classes interact.
This book is not a "companion" book to the well-known Design Patterns text by the "Gang of Four." Instead, it is a tutorial for people who want to learn what design patterns are about and how to use them in their work. You do not have to have read Design Patterns to read this book, but when you are done here, you may well want to read or reread it to gain additional insights.
In this book, you will learn that design patterns are frequently used ways of organizing objects in your programs to make them easier to write and modify. You'll also see that by familiarizing yourself with them, you've gained some valuable vocabulary for discussing how your programs are constructed.
People come to appreciate design patterns in different waysfrom the highly theoretical to the intensely practicaland when they finally see the great power of these patterns, an "Aha!" moment occurs. Usually this is the moment when you discover how that pattern can help you in your work.
In this book, we try to help you form that conceptual idea, or gestalt, by describing the pattern in as many ways as possible. The book is organized into six main sections: an introductory description, an introduction to C#, and descriptions of patterns that are grouped as creational, structural, and behavioral.
For each pattern, we start with a brief verbal description and then build simple example programs. Each of these examples is a visual program that you can run and examine to make the pattern as concrete a concept as possible. All of the example programs and their variations are on the companion CD-ROM, where you run them, change them, and see how the variations you create work.
Since each of the examples consists of a number of C# files for each of the classes we use in that example, we provide a C# project file for each example and place each example in a separate subdirectory to prevent any confusion. This book assumes you have and will be using a copy of Visual Studio.NET, which comes in several versions. We used the Professional Edition in developing the code samples.
If you leaf through the book, you'll see screenshots of the programs we developed to illustrate the design patterns, providing yet another way to reinforce your learning of these patterns. In addition, you'll see UML diagrams of these programs, illustrating the interactions between classes in yet another way. UML diagrams are just simple box-and-arrow illustrations of classes and their inheritance structure, where arrows point to parent classes, and dotted arrows point to interfaces. And if you're not yet familiar with UML, we provide a simple introduction in the second chapter. All of the diagrams were produced using WithClass 2000, and a demonstration version of that program is included on the CD-ROM.
When you finish this book, you'll be comfortable with the basics of design patterns and will be able to start using them in your day-to-day C# programming work.
James W. Cooper Nantucket, MA Wilton, CT Kona, HI
To try again, please visit the B&N Marketplace.




