Giter Site home page Giter Site logo

airport_challenge's Introduction

Airport Challenge

Context

This is my solution to the makers Airport Challenge. The original repo can be found here https://github.com/makersacademy/airport_challenge

Approach

I've solved the problem in Ruby.

The solution has 3 main files, one for each main class

  • airports
  • planes
  • weather

Each file has an associated spec file with relevant tests in, however the plane_spec file contains no tests, as the plane class contains no explicit methods.

The program contains protection against a number of edge cases (e.g. the airport instructing a plane to take off, which isn't at the airport).

The majority of the user actions happen through the instances of airports (e.g. instructing planes to take off and land).

When new instances of planes are created, they are assumed to be airborne, and not associated to any airports until explicitly landed.

Test Coverage

The tests associated with this project have a high coverage (>98%), however the weather.rb file has lower coverage. This seems to be mostly because it contains a private method, and I've not yet been able to work out if I should test this, and if so, how.

airport_challenge's People

Contributors

tansaku avatar silvabox avatar neoeno avatar mateowh avatar dbugsy avatar dearshrewdwit avatar leoallen85 avatar spike01 avatar anitacanita avatar bebbs avatar michaellennox avatar mihailiviucojocar avatar nikeshashar avatar sjmog 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.