I re-read various articles on the Internet, fumbled in books, but did not find a clear explanation and examples of patterns in c ++.
Closed due to the fact that the question is too common for the participants Athari , cheops , Abyx , aleksandr barakin , Streletz 28 May '16 at 10:18 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
- If you have never encountered patterns before, then I recommend this book to start ozon.ru/context/detail/id/31079082 - Unick
|
1 answer
- Patterns are not only in c ++, they are universal for all programming.
- Patterns allow solving typical problems using standard methods, which most experienced programmers are familiar with, which improves the quality of code maintenance — one can write, and another can support.
- Patterns allow us to use their slang names during the design of the program, and not “uh .... well, as Petrovich did last year”.
- Their use can reduce design time by reducing the number of bicycles.
- Patterns make it possible to bypass dangerous, as well as difficult to understand places, because possible problems have already been previously investigated by the developers of patterns, published and studied.
- To be precise, the patterns are not universal, but they are applicable, as a rule, in a certain set of languages, and not just in one. It is not surprising, however, that some patterns are inherent in only one language. - ixSci
|