Skip to content

CodelyTV/java-solid-examples

Repository files navigation

☕⚛ SOLID principles examples in Java

⚛ Learn SOLID principles by examples

CodelyTV Workflow Status

ℹ️ Introduction

This is a repository intended to serve as illustrative examples for the course "Principios SOLID Aplicados" (Spanish).

🏁 How To Start

  1. Install Java 8: brew cask install corretto8
  2. Set it as your default JVM: export JAVA_HOME='/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home'
  3. Clone this repository: git clone https://github.com/CodelyTV/java-solid-examples.
  4. Execute some Gradle lifecycle tasks in order to check everything is OK:
    1. Create the project JAR: make build
    2. Run the tests and plugins verification tasks: make test
  5. Start playing around with the different examples of each SOLID principle. You have explanations here and in the test code 🙂

☝️ How to update dependencies

💡 Related repositories

☕ Java

🐘 PHP

🧬 Scala

Liskov Substitution Principle (LSP)

Dependency Inversion Principle (DIP)

About

This hopefully helpful examples have been implemented by CodelyTV and contributors.

Pull Requests are welcome. We would suggest oppening an issue before actually coding your Pull Request in order to ask for feedback 🙂

License

The MIT License (MIT). Please see License for more information.