Dependency Inversion Principle

Dependency Inpervion Principle is one of the SOLID design principle. It states following two thing:

  1. High-level modules should not depend on low-level modules. Both should depend on the abstraction.
  2. Abstractions should not depend on details. Details should depend on abstractions.
Read More

Builder Design Pattern

Builder pattern is a creational design pattern which separates the contruction process of complex objects from its representation so that same contruction process can create different representation.

Read More

Singleton Design Pattern

Singleton pattern is a creational software design pattern that restricts the instantiation of a class to one “single” instance. This is useful when exactly one object is needed to coordinate actions across the system. It also provides a global endpoint to access the single instance.

Read More

Factory Method Design Pattern

Factory Method design pattern is a creational pattern which defines an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.

Read More

Most Used Git Commands

* Installing git
$ sudo apt install git-all // Use this command if you’re on a Debian-based distribution, such as Ubuntu. For other operating system follow https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
$ git --version // check version

Read More