Saturday, 1 February 2014

Week 4

This week, the topic introduced was recursion. It seems to me that the basic idea is to call a function within itself (with a base case so the recursion does not go on forever and result in an error). The pictures generated using turtle in class and in the readings looked nice, and it made the topic seem more interesting. So far, I understand the examples in class, but as usual, I feel that I need to do some practice on my own before I can feel confident about recursion. Also in this week's slides was something called lambda. This was not mentioned in class (maybe it will be next week), but I did see it in the code for GUIController in A1.

Outside of class, there was the weekly lab, exercise 2, and A1. During the lab (about inheritance this week), the hardest thing for my partner and me was not actually the inheritance itself, but writing the test cases. Writing unit test test cases was something introduced in CSC 108, but I did not get much practice there (so I should probably get some more, perhaps by trying to write some for A1). The second thing this week was E2. This exercise went smoothly for me in general; I did not have that many problems, and I managed to pass the autotester. The last thing this week was A1. I only started it this week, and did not get very far. Something I noticed was that I did not have the module tkinter, which I thought was odd because Python 3 normally comes with that module. This problem was quickly solved by manually installing it.


 Last, I randomly picked two other SLOGs to read. http://achievementsuperlog.blogspot.ca/ was the first one I chose. This person seems to feel relatively comfortable with Object-oriented programming. This person has had previous experience, using the language Java. I thought this was interesting because once I learned Python, I have always been curious about how things are done using other languages. (Also, my high school had a programming class using Java, but I didn't take it.) The second one was http://asdfghjklasdfghjklas.blogspot.ca/. This person wrote about how Object-oriented programming was like an organizing tool. The person also mentioned about the problem with fancy toy in E1. I also had this problem even though I did not hard code strings like 'Squeak!' into my code too, but I figured out how to solve it. For a side note, when I read other SLOGs, I usually read the most recent entry.

No comments:

Post a Comment