# JakubVojvoda/design-patterns-cpp

C++ Design Patterns

Repository: https://github.com/JakubVojvoda/design-patterns-cpp
Canonical: https://ross.abutalabs.com/products/design-patterns-cpp
Language: C++
License: MIT
License Family: permissive
Topics: cpp, object-oriented, design-pattern, creational-patterns, behavioral-patterns, structural-patterns, abstract-factory-pattern, decorator-pattern, factory-method-pattern, iterator-pattern, observer-pattern, singleton-pattern, strategy-pattern, template-method-pattern, visitor-pattern
Last push: 2024-05-12T03:24:20+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3650, "days_push": 843, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4548, forks 969 (observed 2026-08-28T04:08:53.275637+00:00)

## What it is
A collection of classic Gang of Four design pattern implementations in C++, covering creational, structural, and behavioral patterns. Each pattern is provided as a small, self-contained example intended for learning object-oriented design.

## Use cases
- learn design patterns in c++
- see example implementations of the singleton pattern
- study gang of four patterns with code
- reference for observer and strategy pattern implementations
- prepare for software design interviews
- understand creational vs structural vs behavioral patterns

## When to choose
- you want concise, minimal C++ examples of each classic design pattern
- you are learning or teaching object-oriented design
- you need a quick reference implementation while reading design pattern books

## When to avoid
- you need production-ready, thread-safe, or idiomatic modern C++ pattern implementations
- you want a library to import and use patterns directly in your project
- you need patterns beyond the classic GoF set

## Facets
- artifact type: learning-resource
- maturity: stable
- function: developer-tools
- domain: programming-languages, tutorials, developer-tools
- platform: cpp, cross-platform
- tags: design-patterns, object-oriented, gang-of-four, creational-patterns, structural-patterns, behavioral-patterns, educational

## Member repositories
- JakubVojvoda/design-patterns-cpp (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:53.275637+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:20:05.600961+00:00, confidence not recorded.
  - readme: https://github.com/JakubVojvoda/design-patterns-cpp (fetched 2026-08-28T04:08:53.275637+00:00, sha 85b0e48b4897)
- Data as of 2026-08-30T08:39:29.467469+00:00.
