3 ms·
Some patterns have become parts of languages and libraries as those evolved. Subject-observer lives on in Qt's signals and slots and in general any signal/slot
by blub 10y ago
Some patterns have become parts of languages and libraries as those evolved.
Subject-observer lives on in Qt's signals and slots and in general any signal/slot library.
Command is basically operator() or std::function in C++.
Null object is a useful little trick.
I'd also add Facade and Strategy to your list.
It's indeed not long but it does save some time when talking about design and various potential solutions. That's good enough for me.
P.S: I think head first patterns should be preferred to the GoF book if one insists on learning from a book, but otherwise they can be grasped from a Wikipedia article.
- leksak 10y agoI think Game Programming Patterns is an excellent read for learning patterns