Software design patterns

page1thumb

Is a general reusable solution to a commonly occurring problem within a given context in software design. It is not a finished design that can be transformed directly into source or machine code. It is a description or template for how to solve a problem that can be used in many different situations. Design patterns are formalized best practices that the programmer can use to solve common problems when designing an application or system.

Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved. Patterns that imply mutable state may be unsuited for functional programming languages, some patterns can be rendered unnecessary in languages that have built-in support for solving the problem they are trying to solve, and object-oriented patterns are not necessarily suitable for non-object-oriented languages.

Design patterns can speed up the development process by providing tested, proven development paradigms. Effective software design requires considering issues that may not become visible until later in the implementation. Reusing design patterns helps to prevent subtle issues that can cause major problems, and it also improves code readability for coders and architects who are familiar with the patterns.

Design patterns are composed of several sections. Of particular interest are the Structure, Participants, and Collaboration sections. These sections describe a design motif: a prototypical micro-architecture that developers copy and adapt to their particular designs to solve the recurrent problem described by the design pattern.

Types of software desing patterns

  • Algorithm strategy patterns: Related to high-level strategies describing how to exploit application characteristics on a computing platform.
  • Computational design patterns: Related to key computation identification.
  • Execution patterns: Which address issues related to lower-level support of application execution, including strategies for executing streams of tasks and for the definition of building
    to support task synchronization.
  • Implementation strategy patterns: Related to implementing source code to support , program organization and the common data structures specific to parallel programming.
  • Structural design patterns: Related to global structures of applications being developed.

 

 

 

Info:

https://en.wikipedia.org/wiki/Software_design_pattern

Image:

Design Patterns Quick Reference