Skip to content

vdizengremel/refactored-gildedRose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

So what is it ?

This is a refactored GildedRose (see https://github.com/emilybache/GildedRose-Refactoring-Kata). I refactored in 2 different ways :

  • one using inheritance
  • one using composition

I think the one using composition is better because it does not change contract with Item class (same constructor).

If you imagine the Item class to be used in a bigger system, the inheritance solution would have impact at every code which needs to instantiate items.

Hypothesis taken

The quality of an item should always be between 0 and 50 except for sulfura.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages