Git Product home page Git Product logo

section-week-6's Introduction

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

section-week-6's People

Contributors

aerenchyma avatar anandpdoshi avatar

Stargazers

 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.