25 of 59 menu

Design Pattern

A design pattern is a pattern or example of a correct solution to a common problem in software development.

The advantage of using a design pattern is that it reduces the complexity of the workflow, as it reduces the time spent writing code. All patterns already have pre-written names, which also facilitates communication between developers.

Among the disadvantages, it can be noted that developers are tempted to use the selected template, even when not all of its functions are needed for the product being implemented.

There are basic types of design patterns:

  • The delegation pattern delegates responsibility for performing its behavior to an associated object.
  • The functional design pattern provides each module with a specific function that is executed with minimal side effects on other modules.
  • An immutable interface creates an immutable object.
  • Interface provides structuring of programs to make them easier to understand.
  • The marker interface is used to mark the presence or absence of an implementation of an attribute or annotation.
  • The property container adds additional properties to the inner container of a class instead of simply extending the class with new properties.
  • The event channel creates a channel through which messages flow in the publisher-subscriber pattern. For this purpose, the pattern has a proxy object that is neither a publisher nor a subscriber, but only provides a link between them.

See also

  • anti-pattern pattern,
    which determines the incorrect solution to the problem
  • a set of concepts Programming Paradigm,
    which defines the approach to programming
  • technique planning-poker,
    which is designed to assess the volume and complexity of tasks
  • burndown chart,
    which is used for graphical representation of the volume of work
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline