Git Product home page Git Product logo

section-week-3-flickr's Introduction

SI 507 Fall 2017 - Section Week 3


Flickr API

  • sample_diction.json contains the Flickr API response
  • We will create a class Photo, that takes a nested dictionary, and saves interesting properties and values of the API response as object variables

Coding Activity — Learning by doing (~30 mins):

Reference: https://www.programsinformationpeople.org/runestone/static/publicpy3/Classes/ClassesHoldingData.html

  • Discuss in pairs (5 mins): What is interesting in the response?
  • Create a file flickr_response.py
  • Create a class Photo
    • Through its constructor, save the values of interesting properties from the Flickr API response into its object variables.
    • This step is called initializing the object with values.
  • Write __str__ method for this class
    • What would be an interesting string?
  • Write __repr__ method
    • What technical details are interesting when you debug the code?
  • Write __contains__ method
    • What are a few things that are interesting to check for using the in operator?
    • Think about the condition if "______" in photo: do something
  • Commit and push to your forked repository

Project 2 — Manage your project through Github (~20 mins)

  • Fork: https://github.com/SI507-F17/507-Project2-F17
  • Look at the code file and discuss in pairs what you understood (5 mins)
  • Create Milestones and set deadlines for yourself for each milestone
  • Create Issues (they are like broad ToDos) and tag it against each Milestones
    • Create a checklist in the description of each Issue, just like how you would divide a big task into smaller, manageable tasks.
  • Submit the link of your forked repository on your section's discussion thread in Canvas
  • Work on creating new Issues and checklists in issue descriptions for Project 2 at home. This will help you keep track of your progress and ensure that you don't miss out anything in your submission.

Questions?

section-week-3-flickr's People

Contributors

anandpdoshi 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.