Skip to content

This kata is working software (currently). The goal is to refactor it, keeping the Open/closed Principle in mind.

License

Notifications You must be signed in to change notification settings

DarthStrom/roman-numeral-calculator-refactoring-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roman Numeral Calculator Refactoring Kata

This kata currently includes working code and tests. Your mission is to refactor the code with the Open/closed Principle in mind. While the first thing on your mind should be OCP, don't be afraid to use other design principles to make this happen.

This kata is based on the roman calculator kata at codingdojo.org.

More info on the Open/closed Principle:

Getting started

You should have Node.js, npm, and jasmine-node. You can install jasmine-node globally with npm install -g jasmine-node. You will also need to install lodash with npm install.

Once you have jasmine-node and lodash, you can run the tests with jasmine-node calculator-spec.js. They should pass the first time before you make any changes. Any time you make a change, you'll want to run the tests again to make sure you didn't break anything.

Here are some questions to ask as you refactor

  • Is there a portion of this code that is unlikely to change that we can isolate?
  • What kind of changes are likely? And can we organize the code in a way that makes future changes easy?
  • Come up with an example change to work towards... refactor the code to make it easy and then make the change.

About

This kata is working software (currently). The goal is to refactor it, keeping the Open/closed Principle in mind.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published