Skip to content

Lesson 10 (Scope Exceptions Types)

Courtney Frey edited this page Apr 13, 2022 · 2 revisions

Lesson 10: Scope, More on Types, and Exceptions

In the prep work for this lesson, the students learned:

  1. More about scope. Scope was covered briefly in the Functions chapter, but the students have now covered it in more depth.
  2. What exceptions are.
  3. How to raise an exception.
  4. More about what a primitive data type is.

Announcements

  1. More info to come... when in doubt, check with your class Candidate Engagement Manager!

For Part-Time Students:

  1. The third graded assignment opens after this class! Remember to start looking at it when it opens!

For Full-Time Students:

  • Welcome to Day 14!
  • Assignment 2 due at end of Day 15.
  • Non-coding studio today, use any extra class time to work on Assignment 2.

Large Group Time (Instructor)

Lesson 10 Topics That Require Careful Attention

  1. Conversation starters:
    1. What is the difference between different types of errors.
    2. What are some more common errors?
    3. How do we raise an exception?
    4. How do we handle exceptions?
  2. What does "variable hoisting" mean, and what does it look like?
  3. Why would we want to throw an exception?
  4. Why should we try to avoid variable shadowing?
  5. Q & A for the exercises.
  6. Studio intro: Non-coding activity this week on Strategic Debugging.

Studio (TF Notes)

Lesson 10 Studio

  1. Don't be afraid to share your own experience!
  2. This studio is aimed on helping people develop processes for more strategically debugging their code. If they still struggle with debugging after this studio, gently remind them of the topics covered here.
  3. Outline for this studio with proposed timings and discussion prompts.