Skip to content

peterrhysthomas/Roman-Numeral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Documentation


Triangulation and Baby Steps

This kata provides an excellent example of an implementation to follow baby steps. For the novice, the desire is to decide initially what data structure could be used for the mapping, rather than adding the first test case based on the simplest possible solution and then allowing the design to emerge.

Initially, the implementation can consist of a series of if/else statements but as tests are added the following rule should be followed -

"As the tests get more specific, the code gets more generic."

At this point, the implementation can be reworked, using triangulation to determine the more generic solution. Uncle bob gives a nice explanation of the concept of this here -

About

Roman Numerals Kata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published