Giter Site home page Giter Site logo

airport_challenge's Introduction

Airport Challenge

Build Status

Alex Swann Airport Challenge

Unfortunately from the outset, I misinterpreted the user stories and instead thought the focus regarding maximum airport capacity was in reference to number of passengers in the airport, rather than the number of planes in the hanger. Due to this I haven't specified any limitation to the number of planes in the airport but have limited the number of passengers there should be in a given airport...whoops! To add to that I seemed to add all funcitonality regarding landing/taking off/and weather to the plane itself rather than the airport. When you think about what a plane does (takes off/lands/keeps on eye out on the weather) it's obvious why I might have unintentionally gone down this route. When reflecting at the end it occurred to me that, for the purposes of the program, the code itself wouldn't be much help then to an air traffic controller as they would be based at an airport...(duuuh!) I think the main reason this also happened was maybe how I approached drawing up my domain model at the very start. I believe overall it was correct but the behaviour for taking_off/landing and the weather should have been applied to the Airport class instead (see below).

Anyway, my feature tests when implementing the program however have good readability and seem to mimic what should be going on apart from missing any set capacity that the airport should have for the planes. And in retrospect to the methods in the classes, these could always be mapped to the appropriate buttons for the Air Traffic Controller so he/she could utilise the interface of the program in the same way even though more behaviour has been encapsulated by the Plane class. Overall a good lesson learnt! I understand and feel comfortable/familiar with everything we covered this week, I just need to work on maybe how I interpret the user stories and how these are then reflected in all my class behaviour. In the end this exercise has reinforced everything I've learnt this week, not only through the extra material learnt from doing the exercise, but overall, once again, it's been about how I should take a step back when thinking about how to approach the problem. The funny thing is, if I had been pair programming, the other person would have probably pulled me up on both these issues within the first 10 minutes of drawing up the domain model.

Lastly, in future challenges I think I will refer back to this week and think two things:

  1. What's being asked of me?
  2. KISS, hug, KISS

Feature Tests

N.B. I would rather construct a fully fledged feature test at Makers with either my pair next week or during any potential workshop either my cohort or Makers come up with. For now I'm happy with what I've covered this weekend without needing to add an additional 'thing' to go over mentally, to give myself time to reflect on everything so far. :-)

airport_challenge's People

Contributors

tansaku avatar silvabox avatar alex-swann avatar dbugsy avatar leoallen85 avatar spike01 avatar anitacanita avatar bebbs avatar michaellennox avatar mihailiviucojocar avatar nikeshashar 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.