Design Pattern: Factory Pattern in Go

We use the Factory pattern to generate object, when we don’t want to instantiate the object directly. Factory generates the desired object based on the selected criteria. In this article we are exploring the implementation of Factory pattern in Golang.

Design Pattern: Factory Pattern in TypeScript

Factory pattern is used when we don’t want to instantiate objects directly, instead, we want to generate the instance(s) based on some criteria. The factory is responsible for generating the objects. This article demonstrates Factory pattern implementations in TypeScript.

Design Pattern: Factory Pattern in Java

Factory pattern helps to generate object by choosing one class from a bunch of classes. The class is chosen by some predefined criteria. This article demonstrates Abstract Factory pattern implementations in Java.

Design Pattern: Factory Pattern

Factory pattern is one of the most popular and commonly used patterns. When we don’t know what is the type of object that is going to be generated then we use the Factory pattern to create objects based on some criteria.