What is a pattern?

A pattern in software describes a particular recurring design problem that arises in specific design context, and presents a well proven generic scheme for its solution.

A pattern is a three-part rule, which expresses the relation between a certain context, a problem and a solution.

Contexta situation giving rise to a problem

Problemthe recurring problem arising in that context

Solutiona proven resolution of the problem

Why do we need software patterns?

Patterns help you build on the collective experience of skilled software engineers. They capture existing, well-proven experience in software development and help to promote good design practice. Every pattern deals with a specific, recurring problem in the design or implementation of a software system.

Other than this they help with a serious problem in software engineering: you hire a newcomer to a project and no matter how well they know the programming language, it takes them months to get up to speed with how things are done in your project before they can be productive.

The software industry has been trying to come up with ways to improve this. Standardization of programming languages was one way. Standard libraries (class libraries nowadays) has been another way; however, one of the most important ways has perhaps been designing patterns. So, are software patterns important? Very.

Pattern Categories

Architectural Patterns

An architectural pattern expresses a fundamental structural organization schema for software systems. It provide a set of predefined subsystems, specifies their rehabilitates, and includes rules and guidelines for organizing the relationship between them.

Design Patterns

A design pattern provides a scheme for refining the subsystems or components of a software system, or the relationships between them. It describes a commonly-recurring structure of communicating components that solves a general design problem with a particular context.

Idiom

An idiom is an low level pattern specific to a programming language. An idiom describes how to implement particular aspects of components and relationships between them using features of a given language.

Popular Architectural Patterns

Popular Design Patterns

Creational Patters

Structural Patterns

Behavioral patterns

Hope you found this article useful. In the near future I plan to write a separate article for each pattern.

Thanks for reading. 😊

Leave a Reply

Your email address will not be published. Required fields are marked *

Close Search Window