Software Design Pattern eller designmønster er en generel løsning på en problemtype, der ofte opstår i softwareudvikling. Et design pattern er ikke et endeligt design, der kan programmeres direkte; det er en beskrivelse eller skabelon for, hvordan man løser et problem i mange forskellige situationer. En algoritme betragtes ikke som et design pattern, eftersom den løser et beregningsproblem og ikke et designproblem.[1][2]
- ^ cs.lmu.edu: Ray Toal: Design Patterns Citat: "...Design Patterns are not analysis patterns, are not descriptions of common structures like linked lists, nore are they detailed application or framework designs. Design Patterns are "descriptions of communicating objects and classes that are customized to solve a general design problem in a particular context." -- Gamma et al. [ Design Patterns: Elements of Reusable Object-Oriented Software ISBN 978-0201633610 ]..."Each pattern describes a problem which occurs over and over again ... and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without doing it the same way twice." -- Christopher Alexander [ en:Christopher Alexander ]...", backup
- ^ July 24, 2019, freecodecamp.org: #Design Patterns The 3 Types of Design Patterns All Developers Should Know (with code examples of each)Citat: "...Design patterns are design level solutions for recurring problems that we software engineers come across often. It’s not code - I repeat, ❌CODE. It is like a description on how to tackle these problems and design a solution. Using these patterns is considered good practice, as the design of the solution is quite tried and tested, resulting in higher readability of the final code. Design patterns are quite often created for and used by OOP Languages, like Java, in which most of the examples from here on will be written...There are about 26 Patterns currently discovered (I hardly think I will do them all…). These 26 can be classified into 3 types:...", backup