Skip to content

SI507-F17-apd/section-week-3-flickr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published