SOLID Principles

SOLID principles or the "first five principles" of object-oriented programming were named by Robert C. Martin and define very helpful guidelines for designing maintainable, extendable and testable code. In this post we will go through each of the SOLID principles and discuss them in detail using an actual example.

Factory Pattern Instantiations

One of the advantages of factory patterns is the flexibility they provide in terms of declaring the information required to instantiate a factory. In this post we will look at some of the methods of factory instantiation using config file, discuss their usage scenarios and also discuss how the DbProviderFactories decides which DbProviderFactory to instantiate.