3.0 out of 5 stars
Good on theory, lousy on implementation, Jun 17 2004
This review is from: Professional Design Patterns in VB .NET: Building Adaptable Applications (Paperback)
There's definately some good explanation of design patterns in this text, but if you're looking for best practices in .NET coding, you're going to need to look elsewhere.
The book begins with a chapter that explains the basic premise behind the most common creational, behavioral and structural patterns. This chapter is excellent and provided me with the most insight into how I could change the way I develop applications using patterns.
The next chapters deal with how to implement these patterns in the data tier, middle tier and presentation tier. The examples are illustrative, if nothing else. BEWARE THEIR CODING TECHNIQUES! The authors actually implemented the disposal of unmanaged resources like database connections inside of a Finalize() method!!! With the .NET Framework's implementation of automatic garbage collection, this is the absolute last thing you'd ever want to do with an unmanaged resource. They should have used the IDisposable interface.
I'll give them three stars for their treatment of the topic, but these guys are lousy .NET coders.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
5.0 out of 5 stars
Excellent content for Patterns, Mar 8 2004
This review is from: Professional Design Patterns in VB .NET: Building Adaptable Applications (Paperback)
This book illustrates, explains and simplifies design patterns. It is very easy to read, follow and understand. Although all patterns are mentioned in the book only a select few are detailed in the beginning of the book. The remainder of the book provides information how design patterns are used in the n-tier architecture, such as the data tier, middle tier and presentation tier.
The books offers one of the most fascinating concepts in developing the presentation tier, called MVC, a.k.a. Model, View, Controller. MVC decouples the user interface from the form/control events on a form and placing this logic in a controller class or classes. The controllers have full control of the model aspect of the framework where the controller puts data in the view or the user interface from the model.
MVC uses patterns within its framework. For example the controller is made of algorithms and therefore is a strategy pattern. The relationship between the view and model is an observer pattern, while the view is a composite and the relationship from the view to the controller is a factory pattern. Using the factory pattern the controller is created, uses the data in the model and the view is updated via the observer. The book however goes into to detail how to forgo the observer pattern by using data binding with ADO.NET and a data grid. The observer pattern in MVC is not explained, other than in the beginning of the book as the pattern itself as opposed relating to a framework.
You are not limited to just these patterns within MVC. I have used the visitor pattern, the mediator pattern and the command patterns within my controller classes to achieve different methods to communicate and alter the data within the model. It is my opinion that as long as the View, the Model and the Controllers are decoupled from each other then you have achieved MVC.
With excellent code and UML examples, I suggest owning this book as I find myself studying it time and time again attempting to master MVC and implementing best practice with design patterns. Another good book I highly recommend is C# Design Patterns.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
5.0 out of 5 stars
Best Framework out there (even if it IS in VB), Feb 25 2004
By A Customer
This review is from: Professional Design Patterns in VB .NET: Building Adaptable Applications (Paperback)
I was originally skeptical when a colleague suggestesd the book, since I'm a C# programmer and the title talked about business objects in VB.NET. Don't let that disuade you! With the code interoperability of .NET it doesn't matter. The code I downloaded from the website compiled first time! (Which rarely happens) and the examples touch every major angle of using the framework. For diehard C# geeks, there are user contributed ports to C#. I've been a little more open-minded in the bookstore since I bought this book. Definitely buy this book!
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No