Monday 17 February 2014

Trees eh.

Ahhh another week, another ADT. Trees was once again something I learned in high school and this week lectures was another review lesson for moi. I mean review isn't too bad because I totally forgot some terms and ways of traversal for trees. Even in high school when I did remember the types of traversals I always got them mixed up, I guess I just have to brute force myself to remember which is which.

Lab this week was pretty striaght forward and I think it was the first time that we actually didn't run into any problems at all. I would say the hardest part was probably just trying to remember matrices and dot products, but once we remembered it was a pretty simple procedure. What I found pretty useful from the lab was practicing the use of test cases and such. Now that I am more familiar with test case classes, I'm not entirely sure what the advantages of it are.

Sunday 9 February 2014

Mildly Annoying Thursday, but Overall a Fairly Nice Day

As the title states Thursday was mildly annoying. Basically the whole lab kinda went awry. The first section of the lab went fairly well as we breezed through the written on paper parts of the lab. However when we got to the first actual writing code part of the lab my partner and I ran into some problems. At first we assumed the code we were writing just wasn't correct, however with further evaluation from us and our TA we found that the code was 'correct' however Python was not evaluting it properly. We ended up staying the entire lab time.

While it was rather annoying to find that even though the code should work and it didn't, I calmed myself down with the special poutine Caplansky's was putting out for Toronto Poutine Week, which was nice.

Sunday 2 February 2014

My Life with Recursion and Laziness

More recursion this week. I'm not exactly thrilled to say the bloody least, however that's not to say that I don't think it's not important. While I started recursion in high school I am unbelievably rusty at it. The turtle example in lecture certainly helped me review what I knew about recursion and force me to take the recursion mindset. I guess I should look back on my high school recursion notes.

Tutorial gave us trouble again. Once again my partner and I let a simple mistake in syntax slip us up and made us waste a ton of time trying to find what the hell was wrong. I guess other than that nothing else really bothered us. The assignment on the other hand has given me problems, as in I can't be really bothered to work on it more and it's sticking in the back of my mind. I am really that lazy. I should really start on that.

I should really really really really get on that... Yeah...

Thursday 23 January 2014

Objects!

Object orientated programming is not something I am new to, however when I learned it before I learned it in Java rather than Python. So in lecture when we talked about classes this week I was reviewing what I had already learned about objects and classes but also learning the specifics about objects in Python. Things such as overloading was a difference between the two programming languages as you can overload in Java but not in Python. Something was not exactly a difference in languages I learned was the way to approach creating a class with highlighting keywords in the problem given.

 A major problem I encountered this week was just trying to get used to the Python way of creating classes and objects. While it is not that different from the way Java is there are little small bits and pieces of code that I am not used to and have to look up online. I guess the only way I can fix this is to just get more experience with the language.

Tutorial went swimmingly well this week. I had once again worked with stacks and queues before but it was fun working with a partner. Came across a slight hitch during it as we had forgotten the brackets when we called a function and tried to figure out what was wrong for about a good ten minutes. Something else that was new and interesting to me during the tutorial was testing how efficient stacks and queues were. I had never thought about that before and the results surprised me.

Overall the week went by fast and without any real problems. Blogging about work is something new to me and I hope I'll enjoy it...