Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Week 7 Review, Session 2

Caren
July 20, 2018
55

Week 7 Review, Session 2

Caren

July 20, 2018
Tweet

Transcript

  1. Project Questions? Things to note:
 Approach this project as you

    would if you saw it in a 3 hour onsite interview
  2. Agenda Debugging 6:15 - 7:15pm PST Guest speaker 7:15 -

    end of class
 Submit some questions! (link in Slack)
  3. Debugging What are some things we can do to make

    debugging easier for ourselves?
  4. Debugging What are some things we can do to make

    debugging easier for ourselves? Print statements
 Well named variables
 Helper methods (appropriately named)
 Comments in code
  5. Debugging Session We have buggy code in HackMD docs You

    and your partner should:
 Copy the buggy code from HackMD to a coderpad
  6. Debugging Session We have buggy code in HackMD docs You

    and your partner should:
 Copy the buggy code from HackMD to a coderpad
 Make sure the code runs and gives outputs
  7. Debugging Session We have buggy code in HackMD docs You

    and your partner should:
 Copy the buggy code from HackMD to a coderpad
 Make sure the code runs and gives outputs
 Read through and understand the problem

  8. Debugging Session We have buggy code in HackMD docs You

    and your partner should:
 Copy the buggy code from HackMD to a coderpad
 Make sure the code runs and gives outputs
 Read through and understand the problem
 Understand the ‘almost’-solution and trace through
 the code with one of the test cases we provide
  9. Debugging Session We have buggy code in HackMD docs You

    and your partner should:
 Copy the buggy code from HackMD to a coderpad
 Make sure the code runs and gives outputs
 Read through and understand the problem
 Understand the ‘almost’-solution and trace through
 the code with one of the test cases we provide
 Try to fix the code so all tests pass (try fixing the code without print statements first. Imagine it as a white boarding interview)