-
Notifications
You must be signed in to change notification settings - Fork 137
Add wiki page about factory patterns #493
Copy link
Copy link
Open
Labels
3Features of medium complexity or infrastructure enhancementsFeatures of medium complexity or infrastructure enhancementsS1 — C++To solve the issue, you barely need knowledge about CPU microarchitecture, just C++ coding.To solve the issue, you barely need knowledge about CPU microarchitecture, just C++ coding.documentationsAdds a new manual to Wiki.Adds a new manual to Wiki.
Description
We use factory patterns for two classes: BP and Simulator, and we are going to spread the approach to new classes as well. Because of that we want to have the pattern described in our Wiki.
The structure of the page should follow the agenda:
- Motivation — why do we need factories?
- Step-by-step building: interface class, polymorphic derivatives, using
std::mapetc. - Overheads and issues.
- Further reading (usually refers to books/articles author read to prepare the page).
I advise to look through "Gang of Four" book (a.k.a. Design Patterns: Elements of Reusable Object-Oriented Software, please demand it from the mentor), Wikipedia article, and our source code database (bpu.cpp and simulator.cpp).
Metadata
Metadata
Assignees
Labels
3Features of medium complexity or infrastructure enhancementsFeatures of medium complexity or infrastructure enhancementsS1 — C++To solve the issue, you barely need knowledge about CPU microarchitecture, just C++ coding.To solve the issue, you barely need knowledge about CPU microarchitecture, just C++ coding.documentationsAdds a new manual to Wiki.Adds a new manual to Wiki.