Our great sponsors
-
GildedRose-Refactoring-Kata
Starting code for the GildedRose Refactoring Kata in many programming languages.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I did the Gilded Rose kata (as described here). Most places I've seen this discussed use an object hierarchy on top of the Item class, but I had a different approach in mind. Different types of handlers exist and they match to the possible items. This allows for easily adding new items with same functionality, or easily extending with new types of behaviour.
Code can be found here: https://github.com/hdeweirdt/gildedRoseKata/tree/main/src/main/java/com/gildedrose