Recursion:
As stated in the previous entry, I am not too comfortable with recursion. I struggle to think of how to write or trace recursive code because I lose track of what values are being returned or changed. Although this problem could maybe be fixed with proper tracing, as in writing EVERYTHING down. Even though this may help, it seems a bit slow. Maybe I'll get faster at doing this with more practice.
Tracing:
I'm not too sure what to think about this topic. Usually when I trace code I just keep track of things in my head or scribble down a few things to remember. Formally writing down each call and the values being produced seems like it would take a lot more time. This might be more helpful when programs get longer and more complicated later on, but it might also take a lot more writing when the programs get longer and more complicated.
Test:
The test on Wednesday was pretty straight-foward, probably because we have not really covered anything too difficult yet in class. I expect the next test and the exam to be much more difficult.
No comments:
Post a Comment