Code Monkey home page Code Monkey logo

facebooktimemachine's Introduction

FacebookTimeMachine

Use a time machine to meet Nobel laureates!

Details of the assignment can be seen by clicking here.

Getting started

Type in coordinates (e.g. 37.3318, -122.0312) and you'll see a city name appear or update in the table. Click on the city name and start traveling!

You can also type in a place name and it'll auto complete and populate the initial city table. Any places that appear do have coordinates associated with them. To do proper city name autocomplete, I would have to bring in G00gle API's which I wasn't in the mood to do.

As you travel through time, watch your fuel level drop. Don't run out of gas!

Bonus

  1. You can type in a place name and if iOS knows about it, it'll autocomplete and fill out the table (and there will be coordinates associated with it).
  2. We keep track of fuel (to deduct the cost as we move along).

Time analysis

I recompute the cost to get to all 400+ Nobel winners from the time machine's current position each time the time machine jumps (and the table view... errr... dashboard updates). So the time complexity is N entries, or linear.

Things I wish I could've done (but couldn't do because real life / job got in the way)

  1. I try to do a lot more Swifty-ish things in my producion code (e.g. a lot of willSet and didSet actions when setting properties). I didn't find an opportunity to do it in these initial vesions.
  2. display nobel prize details even better
  3. color the cells (green, red, yellow/orange for "dangerous" travel) to indicate whether we have enough fuel to travel
  4. implement a real fuel gage (like a progress bar?)
  5. bring in MapKit for reals!
  6. figure out and write some tests ๐Ÿ˜ด

facebooktimemachine's People

Contributors

dautermann avatar

Watchers

 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.