/solid

A short showcase of the different SOLID principles in Java

Primary LanguageJava

SOLID

S ingle Responsibility Principle
O pen / Closed Principle
L iskov Substitution Principle
I nterface Segregation Principle
D ependency Inversion Principle

About

This repository showcases some rather trivial examples of the different SOLID "rules". The packages are seperated into "bad" and "good" subparts where the "bad" part shows how not to do it and the "good" part shows how the design could be improved.

Please note that the structure of the current code does not try to be the optimum, instead it aims to make it as easy as possible to spot the application of the specific principle.

Pull Requests and comments are welcome.