Dependency Inversion Principle

Programming for Search Engines 101. An area for avid PHP and .NET developers to chat about Programming techniques and how to make better use of search engines.

Moderator: Moderators

Dependency Inversion Principle

Postby vinu » Wed Jan 14, 2015 2:36 am

When we design software applications we can consider the low level classes which implement basic and primary operations(disk access, network protocols,...) and high level classes which encapsulate complex logic(business flows, ...). The last ones rely on the low level classes. A natural way of implementing such structures would be to write low level classes and once we have them to write the complex high level classes. Since high level classes are defined in terms of others this seems the logical way to do it. But this is not a flexible design. What happens if we need to replace a low level class?

Read More
vinu
 

Re: Dependency Inversion Principle

Postby beniston » Fri Feb 06, 2015 2:35 am

That is a wonderful principle of the language. Its the 4th principle in the set of SOLID Principles.

This also could help learning on this more: http://code.tutsplus.com/tutorials/soli ... -net-36872

:D
beniston
 
Posts: 502
Joined: Wed Nov 02, 2011 4:35 am
Location: Cochin
Tell us why you would like to become a WyseLabs Member:


Return to Programming

Who is online

Users browsing this forum: No registered users and 8 guests