Design Pattern: Prototype Pattern in Python

Prototype pattern enables us to create an object from an existing object(by copying or cloning it), rather than creating an object from scratch. This process saves the overhead of the initialization process required for creating a new object from scratch. In this article, we discuss the implementation of the Prototype Pattern in Python.

Design Pattern: Builder Pattern in Python

Builder design pattern helps us by providing a system to construct complex objects, step by step. Especially when an object has multiple varying parts, and we need an easy way to set up those parts. Where other patterns like the Factory pattern, construct an object in a single step, the Builder pattern enables multi-step build. Builder pattern encapsulates the complexity of the complex multi-step build. In this article, we discuss the implementation of the Builder Pattern in Python.

Design Pattern: Abstract Factory Pattern in Python

Abstract factory pattern works as a logical group for the Factory pattern. Abstract factory is used to generate multiple types of factories, and those factories are used to generate the desired item objects. In this article, we discuss the implementation of the Abstract Factory Pattern in Python.

Design Pattern: Template Method Pattern in PHP

Template method pattern defines a template/skeleton for an operation processing steps. The subclasses define some steps of the template/skeleton, and some step definitions can be common for all. This makes it easier for the subclasses to adopt the processing steps defined in the template method pattern. This article demonstrates Template Method pattern implementations in PHP.