finds.dev

youngyangyang04/kama-DesignPattern

卡码网-23种设计模式精讲,每种设计模式都配套代码练习题,支持 Java,CPP,Python,Go🔥

View on GitHub

★ 867updated Jul 2025

// the take

A Chinese-language walkthrough of all 23 Gang of Four design patterns, structured as a coding exercise course tied to the kamacoder.com practice platform. Each pattern gets its own markdown file with explanation, diagrams, and code examples in Java, C++, Python, and Go. It's aimed at developers who know the pattern names but haven't internalized when or why to use them.

Four-language coverage (Java, C++, Python, Go) in a single repo means most readers can read the examples in their native language rather than mentally translating. The exercise-first framing — treating each pattern like a coding problem to solve — is more active than most GoF tutorials that just show you finished code. The sequencing is deliberate: creational patterns before structural before behavioral, with simpler, higher-use patterns (Singleton, Factory) before the obscure ones (Interpreter, Visitor). Active maintenance, last pushed July 2025.

Everything is in Chinese with no English content at all, so this is a non-starter for most non-Chinese readers. The practice problems live on an external site (kamacoder.com), so the repo alone is incomplete — you need an account there to get the actual exercises, which may not stay free. No unit tests or runnable project structure; the code samples are scattered across markdown files rather than a buildable codebase you can actually run and modify. At 867 stars it has modest traction, suggesting it hasn't broken out beyond the kamacoder community.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
867
Forks
175
Last commit
4 Jul 2025

// nearby

If kama-DesignPattern isn't quite it.

All repos →