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

Week 7 Review, Session 2

7bf2baf0d8d5d7d96e6b67c5d567e3f9?s=47 Caren
July 20, 2018
48

Week 7 Review, Session 2

7bf2baf0d8d5d7d96e6b67c5d567e3f9?s=128

Caren

July 20, 2018
Tweet

Transcript

  1. More Review!

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

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

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

    debugging easier for ourselves?
  5. 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
  6. Debugging Session

  7. Debugging Session We have buggy code in HackMD docs

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

    and your partner should:
 Copy the buggy code from HackMD to a coderpad
  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
  10. 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

  11. 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
  12. 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)