Skip to content

My implementation of the GildedRose-Refactoring-Kata exercise in Java

Notifications You must be signed in to change notification settings

mgrecuccio/GildedRose-Refactoring-Kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

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.