设计模式:C#语言版(影印版)
基本信息
- 作者: (美)James W.Cooper [作译者介绍]
- 丛书名: 软件工程实践丛书
- 出版社:清华大学出版社
- ISBN:7302086370
- 上架时间:2004-6-28
- 出版日期:2004 年6月
- 开本:148×210
- 页码:392
- 版次:1-1
- 所属分类:
计算机 > 软件工程及软件方法学 > 设计模式
计算机 > 软件与程序设计 > C#
编辑推荐
设计模式是优秀的、可修改的可重用方案,用于解决日常软件开发中的难题。这是第一本指导C#程序员如何使用设计模式的书。在书中,作者介绍了三大类(创建型、结构型和行为型)共23个模式,详细解释了如何用最常用的设计模式编写C#程序。
内容简介回到顶部↑
设计模式是优秀的、可修改的可重用方案,用于解决日常软件开发中的难题。这是第一本指导C#程序员如何使用设计模式的书。在书中,作者介绍了三大类(创建型、结构型和行为型)共23个模式,详细解释了如何用最常用的设计模式编写C#程序。
作译者回到顶部↑
本书提供作译者介绍
James W.Cooper目前在IBM Thomas J.Watson研究中心任职,主要从事信息管理和检索的研究工作。他拥有多项专利,发表过大量技术论文,还写过14本书,其中包括Visual Basic Design Patterns和Java Design Patterns。此外,他还是JavaPro杂志的专栏作家。
.. << 查看详细
.. << 查看详细
目录回到顶部↑
preface
acknowledgments
part i object-oriented programming in c#
chapter 1 what am design patterns?
defining design patterns
the learning process
studying design patterns
notes on object-oriented approaches
c# design patterns
how this book is organized
chapter 2 syntax of the o# language
data types
converting between numbers and strings
declaring multiple variables
numeric constants
character constants
variables
declaring variables as you use them
multiple equals signs for initialization
acknowledgments
part i object-oriented programming in c#
chapter 1 what am design patterns?
defining design patterns
the learning process
studying design patterns
notes on object-oriented approaches
c# design patterns
how this book is organized
chapter 2 syntax of the o# language
data types
converting between numbers and strings
declaring multiple variables
numeric constants
character constants
variables
declaring variables as you use them
multiple equals signs for initialization
前言回到顶部↑
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 ways--from the highly theoretical to the intensely practical--and 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
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 ways--from the highly theoretical to the intensely practical--and 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


点击看大图



加载中...
