Sunday, February 9, 2014

Fourth Six Weeks

This six weeks saw what I think of as the first "project" lab: the pong lab.  Unlike most other labs where the design of the lab is given to me and all I have to do is fill it in, this lab was much less rigidly structured.  The backbone provided was more in the form of functionality than structure, which allowed my partner and me to put together the lab pretty much as we saw fit.  However, this freedom also came with challenges.  For example, it was very difficult for Ben and me to create the code for the collision detection of the ball.  It took us many iterations of code and repeatedly "talking out" our ideas to each other in order to get the collision detection to work property.  I think that this was a good exercise, as writing and debugging a tricky bit of code is an important skill to learn.  Another aspect of the pong lab that I enjoyed was the bonus problem of converting pong into block breaker.  It was fun to be able to reuse so much code to create an game that seems so different from pong, but is really contains very similar components.

Despite all of the things that I enjoyed about this lab, it was somewhat lessened because of the level of abstraction we were working at.   We were given how to use the Graphics library and treading without any instruction on what the library actually did or how it did it.  I understand how the time constraints of the course limits instruction to only what is necessary for an AP course, but at the same time it is disappointing as a student to be told "No, you don't need to know how it works.  Just use it."  I know that many students missed important aspects of the lab because they did no know how the Graphics library, such as that the render() method would be called in a loop repeatedly.  I am not sure how this could have been avoided, just that it is always disappointing when functionality is hidden.