Skip to content

stefanmirck/parrot-refactoring-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parrot Refactoring Kata

Can you spot any code smells in this code? Here’s a clue: a spot of Pol(l)ymorphism should improve matters!

Refactor this code, take small steps, run the tests often. See how small and beautiful and polymorphic you can make it.

Acknowlegements

This kata is based on @emilybache’s original kata and @keriati’s translation to JavaScript, but instead is an ECMAScript module (no transpiling) and uses the Node.js test runner (no dependencies). Watch Emily’s videos explaining this kata.

The code is heavily inspired by one of the examples in Martin Fowler’s book “Refactoring”. It‘s a classic, and if it‘s not on your bookshelf already treat yourself to a copy.

About

Kata to learn about polymorphism

Topics

Resources

License

Stars

Watchers

Forks