Git Product home page Git Product logo

airport_challenge's Introduction

Makers Academy Week One - Airport Challenge

16-17 June 2018

First week (weekend) solo project, consolidating learning around OOP, TDD and pair-programming. Closely followed a TDD approach, with all unit tests written before methods according to user stories. The goal was to build a functioning airport management system, landing/taking-off planes and managing their storage. A random weather variable was also added, which raises errors if planes try to land in stormy conditions.

Full project details and user stories here.

Completion

  • All features fully implemented.
  • All tests passing with 100% coverage.
  • All methods โ‰ค 5 lines long.
  • Code fully conforms to Rubocop style guide.

Framework

Written in Ruby using Rspec for unit tests & irb for feature testing.

Implementation

irb
require './lib/airport.rb'
airport = Airport.new # Creates new instance of Airport class
plane = Plane.new # Creates new instance of Plane class
airport.land_plane(plane) # Changes status of plane and pushes it to hangar
airport.hangar # Contents of hangar
airport.take_off_plane # Removes plane from hangar, changes status of plane
airport.weather.change_condition # Calls a random weather condition

Further Improvements

  • Allow for planes to accept airports as arguments & take over landing responsibility.
  • Potential for adding contexts to spec code.
  • Potential for tightening the take-off/hangar management system.

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.