Skip to content

SI507-F17-apd/section-week-6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Understand, debug and fix this code

There are 4 bugs related:

  1. syntax / definition (this will be obvious)
  2. caching (right now it is always loading a fresh copy)
  3. repeated content (Byline)
  4. undesired content like 'section X - page Y' (Above Byline)

As you read the code and try to find bugs, add new comments based on what you understand. Ask questions to yourself when you don't:

  1. Look at the constants. What do you understand from them?
  2. What is each block of code doing?
  3. Write missing DocStrings in the 2nd half of the code like those written in caching functions
  4. How is the code organized? Look at how arguments are passed to different functions.
  5. Try to understand how it all comes together at the end.
  6. As you notice something different from how you usually write code, think about how would you have written it. (The next project is about collaboration and you will need to read, understand and adapt to each others' style of writing code.)

Extend this code (if you have time)

  • Make it an interactive experience
  • Ask which section does the user want to read
  • Then only show that section's articles
    • For each story, show related articles

About

Debugging a code with complex scraping and caching

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages