Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.05 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.05 KB

Implementation of the Gilded Rose Refactoring Kata

This is a Java implementation of the famous "Gilded Rose Refactoring Kata" exercise. The original repository contains the full explication and the code base in multiple programming languages.

Java implementation

The implementation is based on the following concepts:

Fundamentals

I categorized the items in 5 categories:

  • Aged Brie
  • Legend
  • Backstage
  • Conjured
  • Generic

The business logic of each type is implemented in the specific processor (strategy pattern). The processors are instantiated by the ItemProcessorFactory (factory pattern). The Exception Handling shows how errors and exceptions should be managed in Functional Programming.