# liu-jianhao/Cpp-Design-Patterns

C++设计模式

Repository: https://github.com/liu-jianhao/Cpp-Design-Patterns
Canonical: https://ross.abutalabs.com/products/cpp-design-patterns
Language: C++
License Family: other
Topics: design-patterns, cpp
Last push: 2024-10-11T08:12:29+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": 2893, "days_push": 691, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2609, forks 618 (observed 2026-08-28T04:07:04.239055+00:00)

## What it is
A collection of C++ implementations of classic design patterns, organized by category such as component collaboration, object creation, and interface isolation. It also covers object-oriented design principles like DIP, OCP, and SRP with explanatory notes.

## Use cases
- learn design patterns in c++
- c++ examples of singleton and factory patterns
- study object-oriented design principles
- reference for implementing observer or strategy pattern in c++
- prepare for software design interviews
- understand decorator and bridge pattern implementations

## When to choose
- you want concise, runnable C++ examples of GoF design patterns
- you are learning OOP design principles alongside pattern implementations
- you prefer a categorized, tutorial-style repository

## When to avoid
- you need a production-ready pattern library to link into your project
- you need a permissively licensed codebase (no license is provided)
- you need patterns in another language

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools
- domain: programming-languages, tutorials
- platform: cpp, cross-platform
- tags: design-patterns, cpp, object-oriented-design, educational, code-examples, algorithms

## Member repositories
- liu-jianhao/Cpp-Design-Patterns (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:04.239055+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-30T02:20:54.595135+00:00, confidence not recorded.
  - readme: https://github.com/liu-jianhao/Cpp-Design-Patterns (fetched 2026-08-28T04:07:04.239055+00:00, sha ff0270674258)
- Data as of 2026-08-30T08:39:29.467469+00:00.
