FranklinChen / Parrot-Refactoring-Kata

Kata to help practice Pollymorphism (with apologies to Martin Fowler's "Refactoring")

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parrot Refactoring Kata

Can you spot any code smells in this code? I'll give you 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 you can make it.

Acknowlegements

This 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 I suggest you treat yourself to a copy!

About

Kata to help practice Pollymorphism (with apologies to Martin Fowler's "Refactoring")

License:MIT License


Languages

Language:XSLT 18.4%Language:Pascal 9.5%Language:C++ 6.5%Language:JavaScript 5.6%Language:TypeScript 5.4%Language:PHP 5.3%Language:C# 5.2%Language:C 4.3%Language:Rust 3.8%Language:Scheme 3.6%Language:Objective-C 3.4%Language:CMake 3.3%Language:Clojure 3.1%Language:Swift 3.0%Language:Go 3.0%Language:Java 2.9%Language:Scala 2.8%Language:Kotlin 2.4%Language:Python 2.4%Language:Ruby 2.3%Language:Crystal 2.1%Language:Shell 1.5%Language:Batchfile 0.3%