Wrox Programmer Forums
|
BOOK: Professional Enterprise .NET
This is the forum to discuss the Wrox book Professional Enterprise .NET by Jon Arking, Scott Millett; ISBN: 978-0-470-44761-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Enterprise .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2010, 08:21 PM
Registered User
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dependency Inversion Principle

This is described on p61 but I don't think the book has demonstrated the intent of the pattern "properly" in code.

The higher level module should define an interface describing the services it requires from a lower level module. The interface should be in the same namespace/package as the higher level module - not associated with the lower level module.

The idea is that the higher level module defines it's required services in terms of it's own business objects and does not rely on low level/3rd party provider APIs.

It's really an example of an adapter pattern.

In the example shown we've simply extracted interfaces for the entire lower level modules without without making this distinction.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sql Cache dependency with objectdatasource ranjan74feb ASP.NET 2.0 Professional 0 November 5th, 2007 08:19 AM
Cache dependency on a web file madkaikar_ashish General .NET 0 February 16th, 2005 12:31 AM
dependency files m002864 Crystal Reports 0 July 7th, 2004 02:56 PM
Date Inversion evandro.paula SQL Server ASP 0 January 16th, 2004 02:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.