Skip to content

Instantly share code, notes, and snippets.

@LastZactionHero
Last active July 6, 2018 20:57
Show Gist options
  • Save LastZactionHero/3650b7cd1520a4e412f563f45fb28bf6 to your computer and use it in GitHub Desktop.
Save LastZactionHero/3650b7cd1520a4e412f563f45fb28bf6 to your computer and use it in GitHub Desktop.
Boulder Tubing Assignment

Boulder Tubing Guide

During the summer, people go tubing down Boulder Creek. To be fun, it has to be just right: enough water flowing, hot enough, and mostly sunny.

Objective: Build an application that lets the user know if it's a good day to go tubing. Implement it however you'd like using. Preferably Ruby on Rails for the backend/API, but beyond that whatever stack you feel is appropriate.

The goal is to demonstrate general competency, and comfort developing an open-ended application. Take about an hour. Since that's not much time, it's fine to describe unfinished parts with what you'd have liked to do.

Use this API endpoint for information on tubing conditions:

GET https://boulder-tubing-api.herokuapp.com/conditions


Returns application/json:
{
  "temperature_f":"44",
  "weather_condition":"Cloudy",
  "flow_rate_cfs":58.0
}

To be a good day for tubing, these conditions must be met:

Temperature: > 85 F

River Flow Rate: between 40 CF/S and 300 CF/S

Weather Conditions: One of the following:

windy
cloudy
mostly cloudy
partly cloudy
clear
sunny
fair
hot

See Yahoo Documentation for a complete list of condition codes.

Other notes:

  • The API is really slow, running free on Heroku, and doesn't cache any data. Feel free to re-implement this, or cache data faster responses:

Boulder Tubing API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment