Search

Table of Contents
C# Design Patterns: A Tutorial
BOOK:
C# Design Patterns: A Tutorial
Browse by Category
 
 
Hide Left Column
C# Design Patterns: A Tutorial
C# Design Patterns: A Tutorial
by James W. Cooper

Publisher: Addison-Wesley Professional
Pub Date: September 17, 2002
Print ISBN-10: 0-201-84453-2
Print ISBN-13: 978-0-201-84453-5
Pages: 416
Slots: 1.0
Start Reading
Buy Print Version
Overview

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:

  • Applying design patterns effectively in your day-to-day programming

  • Using patterns to create sophisticated, robust C# programs

  • The interaction of classes as demonstrated by UML diagrams

  • Advancing your programming skills using design patterns

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.



0201844532B05232002

 
Editorial Reviews
Product Description
The first book for C# programmers on how to use Design Patterns. Explains how to write C# programs using some of the most common design patterns. Softcover. CD-ROM included.
 
Reader Reviews From Amazon (Ranked by 'Helpfulness')
Average Customer Rating:based on 27 reviews.
Questionable Content, 2007-03-26
Reviewer rating:
I bought the book in high hopes and good faith for a well researched and easy to read text. I was mistaken.

I didn't mind the first 7 chapters being a sort of 'programming overview' and introduction to the concepts used in the book - what I did mind was that it was poorly expressed, often missed key points and was sloppy and felt rushed. For example, in Chapter 4 some of the code (in the 4th edition of the text mind you), went something like this:

if (index > length of array) {
return array[index]
} else {
return special value
}

I am sure I am the only one to see the problem with that.
Then in chapter 7 (I think), they have this gem:

pos = string.trim().indexOf(" ");
if (pos > 0) {
left = string.substring(0, pos).trim();
....
}

Ok, so most of the time this is going to work, but if the string begins with some whitespace? *sigh*

Then when they finally got to the patterns, it still felt rushed, the descriptions were little more than an introduction to the code (as stated already questionable) that implemented the pattern - not much to give you that 'aha' moment they talked about in the introduction, and from what I understand they didn't even explain the Singleton pattern correctly....

It was at this point that I returned the book and bought the original "Design Patterns: Elements of Reusable Object-Oriented Software" - at least I know they know what they are talking about, and so far it has been much better (and cheaper), so now I can relax and actually learn something.

In this book's defence I didn't actually open the CD and try to run the code to see if they had fixed the bugs as written in the text - but if a programming book can't even match discussed code with runnable code, then it's pretty poorly written/maintained in my opinion.

Nuf said.
Quite A Different Way Of Mind, 2007-03-10
Reviewer rating:
While reading this book, I found myself wondering what took me so long to get this book. It's not difficult to read, and each of its 22 design patterns is both applicatable for different goals I needed, and easy to implement in my code.
I recommand this book to anyone starting to program C# applications, and/or Buisness logic classes.

It blew my mind, and Improved my C-Sharp skills a lot.
I hope it does the same for you !
Waste of money - I wish I hadn't bought this..., 2005-02-24
Reviewer rating:
Basically a horrible book for the same reasons listed by all the other 1 star ratings. I bought it on a whim whilst browsing in a bookstore - wished I'd read a review or few first.

To echo my major issues with it:
- The book is 363 pages long, the first 96 being a tutorial on C# and OO, so its effectively only 259 pages on design patterns.
- The tutorial pupports to teach you both C# and OO general principles in 96 pages (and some UML as well)? Seriously now...
- The whole book is full of typographical errors, particularly in the code with regards to erroneous spaces (or lack of) - there are inconsistencies everywhere, as well as misspelled words etc. etc.
- Poor and erroneous commenting e.g.: //create a new Arraylist
- Examples are very contrived and often far from real world scenarios. I realise examples have to be somewhat contrived for print publishing, but this goes way too far...
- As others have mentioned, the code seems more like Java than C# a lot of the time.

Given the above, I haven't even bothered to load the CD.

Consequently the only bits of the book that are actually valuable are the bits transcribed and summarised from other people books, most obviously the classic "Design Patterns" be Gamma et. al. Given this you're much better off just referring to the original source material. (Ironically both of these books are published by Addison-Wesley)
Terrible book for beginner or expert, 2005-02-02
Reviewer rating:
I'm what I would call an advanced C# developer, but have always felt I could use some education in accepted design patterns. I thought this book would be a great start. Boy was I wrong! I second every complaint I've read in these user reviews.

That said, I'd like to add one more to the list: Often there was nothing in the text to explain how exactly the example code exemplified the pattern being discussed! This was maddening to me--you get some bad code, then an unnecessary line-by-line description of how the bad code works, but you're no closer to understanding the proper application of the design pattern.
Very solid read , 2004-10-10
Reviewer rating:
Personally, I found this book very easy to read - and I actually appreciate the fact that some time is spent on C# fundamentals prior to diving into the patterns. If you're already a C# master, skip the intro and go right to the patterns. But just about everyone can use a refresher on language fundamentals so even though I'm pretty familiar with C#, I still found it a valuable part of the book.
 
Some information above was provided using data from Amazon.com. View at Amazon >
C# Design Patterns: A Tutorial
C# Design Patterns: A Tutorial
by James W. Cooper

Publisher: Addison-Wesley Professional
Pub Date: September 17, 2002
Print ISBN-10: 0-201-84453-2
Print ISBN-13: 978-0-201-84453-5
Pages: 416
Slots: 1.0
Start Reading
Buy Print Version
© 2009 Safari Books Online. All rights reserved.