Hello, world! 👋🏽
As the name suggests, this repo contains some notes I used to learn more about design patterns. The content here is based in the famous gang of 4 design patterns book: Design Patterns: Element of Reusable Object-Oriented Software, by Erich Gamma et al.
This repo was built using Gradle and Kotlin. So you may want to get the latest version of IntelliJ Idea CE or whatever text editor having Gradle support inr order to interact with it.
All the design patterns have a test suit, with examples of how the design pattern is used, emulating a real-life scenario of how it could be used in production code. These tests are intended to show the interaction between the involved classes in the design patterns, and give a high-level overview of them.
-
Creational Patterns
-
Structural Patterns
-
Behavioral Patterns
- Chain of Responsibility
- Command
- Interpreter (pending)
- Iterator
- Mediator (pending)
- Memento
New design patterns will be included as time passes.
Any contribution is welcome! Just keep in mind that, since this is a little project with study purposes, no CI is configured (yet), so be sure you ran all the tests and all of them passes, so we can all have an self-contained version of the project. To do so:
- Fork the repo
- Clone your fork
- Create a new branch
- Code (the exciting part)
- Push (to your form)
- Open a PR to the upstream repo
- Wait for review
Cheers! 🍻