-
Notifications
You must be signed in to change notification settings - Fork 59
Lesson 9 (Exceptions and Build Tools)
Courtney Frey edited this page Apr 15, 2022
·
8 revisions
- How to handle an exception in Java.
- What Gradle is.
- How Gradle manages dependencies and external repositories
- How to use debugging tools in IntelliJ
- Check with your course manager for any other important announcements.
- Remind students that Assignment #3 is open for them to start working on it!
- Welcome to day 15!
- Much of the reading focuses on debugging and handling errors. Don't be afraid to share your own experiences with debugging and exceptions. Share your own process when it comes to using debugging tools and exception handling.
- Share an exception example and go over the following:
- How do you decide which exception to use
- How you decided what code to put in a
try
statement and what code to put into acatch
statement.
- Review Gradle. Go over the
build.gradle
file and why each one matters (as needed) - Show how to use debugging tools in IntelliJ. Include topics such as adding breakpoints, watch expressions, and how to address common problems.
- Studio has 2 parts. 1. Students will be sharing their errors within a group. 2. Students will use the debugging tools on
lsn7interfaces
project. - Don't be afraid to share your own debugging and errors stories! Emphasize that every programmer has to deal with bugs. It gets a lot easier once you have a strategy in place and the right tools.
- Helping students figure out a process by which they can debug their code is the point of the studio. If they add a breakpoint, ask them to tell you why they put it there. Or what they learned from it.
- After students finish playing around with
lsn7interfaces
, encourage them to use their new debugging skills on another project or piece of code that is giving them trouble. This could be an old set of exercises that they never got quite right, a studio, or an outstanding assignment.