Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Famous design patterns that a C++ programmer should know [duplicate]

Possible Duplicate:
What C++ idioms should C++ programmers use?

After reading books like C++ Primer, Effective C++ and TC++PL I want to learn some important design patterns.

So, what are the famous design patterns that every C++ programmer should know?

like image 417
Prasoon Saurav Avatar asked Jul 20 '10 04:07

Prasoon Saurav


People also ask

Are there any design patterns in C?

Yes, there are. Lazy initialization, singleton, object pool, object state etc. are easily implemented in pure C.

What are the most used design patterns in C++?

Template Method. Abstract Factory. Singleton (much hated, but everywhere) Visitor.

Which design pattern is most useful in software architecture?

Adapter (Structural) The adapter pattern (or sometimes known as a wrapper) is one of the most useful and most popular design patterns in software engineering. This pattern seeks to solve the problem of incompatible interfaces between a client and a service provider.

Should I know all design patterns?

Design patterns are a toolkit of tried and tested solutions to common problems in software design. Even if you never encounter these problems, knowing patterns is still useful because it teaches you how to solve all sorts of problems using principles of object-oriented design.


1 Answers

C++-specific ones: RAII and PIMPL.

like image 116
Michael Avatar answered Sep 21 '22 15:09

Michael