Dependency Inversion Principle and the Dependency Injection Pattern

Introduction  Every day we write lots of code that are tightly coupled and when complexity grows code will eventually deteriorate into Spaghetti Code. Which violates the Dependency inversion principle. In software design, tight coupling is often considered to be a liability in design. When one class knows explicitly about the Continue Reading