Refactor to Design Patterns is a Java collection with a lot of badly written (hard to understand, maintain and debug) pieces of code. The goal is to refactor them according to the original GOF design patterns.
- Open up a package, like
com.csmastery.chainofresponsibility, run the relevant tests insrc/test/java, and try to understand the codebase in the first place - Figure out the problems in the codebase
- Go to Refactoring Guru and read the description about the pattern
- Refactor the bad code :)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.