Giter Site home page Giter Site logo

topgearkata's Introduction

Top Gear Refactoring Kata

This is a refactoring challenge where we look at a single-method case, which is untested, needs refactoring, and is hard to read. Oh, and contains bugs;-)

The assignment is as follows

This is the code for our customer's new environmentally friendly electric car. The car is very dependent on software for almost everything, and the part that we're working on is the automatic gear box. The code you see is the automatic gear box, which currently shifts up if the engine goes over 2000 rpm, and down if it goes under 500.

For our this new car, it's been determined that the choice of gear can be much more efficient if we could just set more specific ranges of rpm for each gear. Future versions of the car could then use actual measurements of fuel consumption to configure those ranges on the fly! Your assignment is to make the gearbox accept a range of rpms for each gear (and of course use that range to shift gears!)

topgearkata's People

Contributors

wouterla avatar

Watchers

Nizar GARRACHE 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.