Giter Site home page Giter Site logo

week9-1's Introduction

Week 9

This week consists of a programming challenge designed to help you review some of the essential ideas of the course.

You'll find a Python script, send_weather.py, which accomplishes the following:

  1. Prompts the user for a zip code and a phone number
  2. Displays the current temperature for that zip code
  3. Also sends a text message to the phone number that was provided.

However:

  1. Due to time constraints, it's recommended that you form a group of 2 or 3 people for this activity.
  2. You will need a file named keys.py, not included in this repository, in order to run the code. This file will be posted in Canvas. Save it into the same folder as the send_weather.py file.
  3. It's ok if you don't get through this entire exercise during class. Just get as far as you can, and you can work on the remainder at home as practice for the exam.

The Challenge

This amazing little Python script has proved so popular across campus that we've received a million requests to convert it into a reusable Python module, so that other programmers can extend and build upon it!

Your job is try to to convert this script into a reusable library that other developers can import into their own scripts.

A module named weather.py has been started for you already.

Tasks

Start by forking this repository, then clone your fork to your laptop.

  • Careful - do not put the keys.py file into your repository!

Consider the following:

  • Are there any improvements you want to make to the current code?
  • What's the best design for the module's public interface?
  • Would you prefer to drive the design with unit tests instead of trying to decide ahead of time?
  • Are there any standard design patterns that would be helpful here?
  • You must prevent actual API calls to both the weather and texting services while running the unit tests.

When You Think You're Done

  • Create a pull request back to the original repository.
  • In your pull request description, indicate whether you started with a design decision or if you wrote tests first in order to drive the design.
  • Here are step-by-step instructions if you need it.

week9-1's People

Contributors

jeffcohen avatar

Watchers

James Cloos avatar Claire Kim 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.