How nyanmyr/nyanmyr-s-design-patterns works
This repository is a Java reference collection of GoF design-pattern snippets, not one integrated application. The learner’s workflow is to select and review an individual pattern example; each pattern is a separate module, with no shared runtime pipeline. The README documents creational, structural, and behavioral examples, including some whose source was not sampled. Sampled code confirms internal interactions for Facade, Observer, Chain of Responsibility, Command, Proxy, Composite, Interpreter, and Flyweight; unsampled examples are represented by their exact tree paths without inferred wiring.
Main entry points: AbstractFactory.java Abstract Factory · Builder.java Builder · Factory.java Factory · Prototype.java Prototype
Components 22
Creational patterns
- Abstract Factory
abstract_factory/AbstractFactory.java - Builder
builder/Builder.java - Factory
factory/Factory.java - Prototype
prototype/Prototype.java - Singleton
singleton/Singleton.java
Structural patterns
Behavioral patterns
- Chain of Responsibility
chain_of_responsibility/ChainOfResponsibility.java - Command
command/Command.java - Interpreter
interpreter/Interpreter.java - Memento
memento/Memento.java - Observer
observer/Observer.java - State
state/State.java - Strategy
strategy/Strategy.java - Template Method
template/Template.java - Visitor
visitor/Visitor.java
Other components
- Learner
Connections 21
- Learner → Abstract Factory: reviews
- Learner → Builder: reviews
- Learner → Factory: reviews
- Learner → Prototype: reviews
- Learner → Singleton: reviews
- Learner → Adapter: reviews
- Learner → Bridge: reviews
- Learner → Composite: reviews
- Learner → Decorator: reviews
- Learner → Facade: reviews
- Learner → Flyweight: reviews
- Learner → Proxy: reviews
- Learner → Chain of Responsibility: reviews
- Learner → Command: reviews
- Learner → Interpreter: reviews
- Learner → Memento: reviews
- Learner → Observer: reviews
- Learner → State: reviews
- Learner → Strategy: reviews
- Learner → Template Method: reviews
- Learner → Visitor: reviews