Type: Creational pattern Description: Factory method design pattern allow you to create an object from one place instead of many places. By implementing this design pattern, we are ensuring that we are abstracting the logic of object creation at one place only. Example: Lets take an example of bank application. Consumer of bank application needs … Continue reading Factory method design pattern
Month: November 2018
Template method design pattern
Description: This is a type of behavioral design pattern. There is an operation in a parent class which has few sub-tasks and all or few sub-tasks behavior may be changed by its child classes at run time. It means we are defining a structure of an operation / algorithm and we are allowing child classes … Continue reading Template method design pattern
ACID properties
ACID properties are very useful in relational database. It gives you confidence that your data will always be consistent no matter how many transactions will occur at a time or in case of system failure. ACID stands on A: Atomic C: Consistent I: Isolate D: Durable Let’s see each property in detail. Atomic "All or … Continue reading ACID properties
Software design patterns
Many times software developers fall into same type of problems. So instead of finding solution from scratch, can we use the same / similar type of solution which was given by other engineers earlier? Yes, it is possible to use the same solution in case of similar type of problem. So design pattern is like … Continue reading Software design patterns