Design pattern: Forskelle mellem versioner

Content deleted Content added
m wiki
m småtilføj
Linje 1:
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 [[programmering|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.<ref>[https://cs.lmu.edu/~ray/notes/designpatterns/ 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]] ]...", [https://web.archive.org/web/20210514040404/https://cs.lmu.edu/~ray/notes/designpatterns/ backup]</ref><ref>[https://www.freecodecamp.org/news/the-basic-design-patterns-all-developers-need-to-know/ 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:...", [https://web.archive.org/web/20210812230201/https://www.freecodecamp.org/news/the-basic-design-patterns-all-developers-need-to-know/ backup]</ref>
 
== Historie ==