1.4-Software-Development-Principles

DRY and KISS

Download the zip file. This file contains a IntelliJ project.

The project consist of three classes:

DRY’ing up our code

The code in the classes does not adhere to the DRY principle. Your assignment is to refactor the code in such a way that the DRY principle is respected.

KISSing our code

The code does not respect the KISS principle. The (giant) switch statement can be simplified by using an array of String(s). Your assignment is to refactor the code in such a way that the KISS principle is respected.