SUCCEED

   

Programming 2009
Shodor > SUCCEED > Workshops > Archive > Programming 2009

The day started out with the students testing and fixing heir java applets that they had created the day before. The applet modeled a scenario of disease spread throughout a community. Jason and a few of the staff members went around the room helping the class find and fix errors so that their programs would work.

Afterward, Jason explained that they would be teaching exception handling. He started by explaining that exception handling basically listens to events, such as button clicks and movement of slider bars in the applet, then does an action or event in response. Then he created pseudo-code, which is part code, part English, and asked students to give reasons of why he would do a certain line of code. This way, he taught the class the code needed for the exception handling, and why and how it works. In the end, Jason and the class were able have buttons and sliders respond to users in their java applet.