Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > BOOK: Professional Enterprise .NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 10:35 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.