Week #4 Blog
This week we focused on the basics behind Assignment one and on recursion. The assignment seemed very daunting at first, especially when we started talking about it in class. I hadn't even read the handout yet and there were already people asking questions about the implementations. Once I started reading the handout I felt a bit better. I started tinkering with the code for TOAHModel.py and after I did that I started to understand what I needed to do. One of the most challenging parts was to figure out the different functions you needed to create. some function headers were already written for you but some were not. At the end of the week I was able to get a basic game going but I then encountered problems with the GUIController. It is very hard to try and figure out what the code is actually doing because there are some things that I never encountered before. I think I need to just go through the file and try to make sense of where I am going wrong.
On Wednesday we started doing more on recursion. I understand recursion and I can trace it pretty well but I think my main problem is implementing it myself. tree_burst.py was very daunting at first as well because I haven't really worked with turtle.py before but once I started reading it I was able to grasp what the code was doing. Once we started going step by step I started to understand it and it doesn't seem so terrifying anymore.
Thursday, 30 January 2014
Sunday, 26 January 2014
During this week, we started learning about Object-Oriented
Programming. Basically you make different objects that have certain attributes and do certain functions. I’m not very used to this
style of programming because we only learned about it at the end of 108 but
overall I understand how to use object-oriented programming. I knew about
object-oriented programming before 108 even though I never implemented it
before but one thing new I learned is about inheritance. At first it was very
challenging to wrap my mind around it but after we did some examples in class I
was able to get the hang of it. So far I’m feeling confident about how this
course is going. It was very different compared to 108 but I think I am
handling it pretty well. During my tutorial, my partner and I were able to
finish the lab in almost an hour. I found it a very good experience to make my
own ADT and I felt a lot better about object-oriented programming after that.
Subscribe to:
Posts (Atom)