Skip to content

mxandeco/dsch-codekata-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CodeKata 1 - Sing a song

Category: Refactoring

Objective

Code to produce a popular children's nursery rhyme was produced by a web agency for the customer last year. The customer now desires to produce multiple different versions of the song using the same structure but based on different themes, for example a current popular children's movie featuring a cast of animals. The customer asks that you make the song configurable for different lists of animals. The customer cannot guarantee that there will be the same number of animals in each different version.

No documentation was provided by the previous developer and there is only one failing test :(

Task

Refactor the code to allow for the customer's needs. Remember: refactoring can only be done in the presence of tests that are passing, and after refactoring the tests still pass!

Constraint

TDD (Test Driven Development) style!

Source code

A Java version can be found in the java folder;

A PHP version can be found in the PHP folder;

TODO: add javascript and maybe python?

Credits

This code kata and exercise files are based on: London Code Dojo, repo and license here Alterations were made to the source code.

License

The code samples are licensed under the CC-SA-NC-4.0 license, as shown in the LICENSE file.

About

CodeKata 1 - Sing a song

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 50.5%
  • PHP 49.5%