GithubHelp home page GithubHelp logo

roman-numerals's Introduction

Roman Numerals

Write a function to convert Arabic numbers to Roman numerals as best as you can.Witre the program following the TDD practices.

๐Ÿ How to install

git clone https://github.com/AraManjon/roman-numerals.git

move to folder roman-numerals

npm install

โœ… Usage

In the project directory, you can run:

npm run test

see test passed

๐Ÿ‘€ What do you need

๐Ÿ‹๏ธโ€โ™€๏ธ Github workflow

This project is configurated with Continuous Integration with github to optimize test automation. see .github/workflows folder

๐Ÿšฆ Introduce the concepts of TDD and BabySteps

The three laws of TDD

  • You are not allowed to write any more of a unit test that is sufficient to fail, and compilation failures are failures
  • You are not allowed to write any production code unless it is to make a failing unit test pass
  • You are not allowed to write any more production code that is sufficient to pass the one failing unit test

Refactoring and the Rule of Three โ€“ baby steps

  • The Rule of Three defers duplication minimization until there is enough evidence. Code that does not contain duplication is often referred to as abiding to the DRY (Do not Repeat Yourself) principle.

Three methods of moving forward in TDD

  • Fake it
  • Obvious implementation
  • Triangulation

Detect axes

  • The idea is that we stay in one behavior until we are sure that behavior is completed. โ€‹

Naming tests

  • Tests should have names that describe a business feature or behavior

roman-numerals's People

Contributors

aramanjon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.