Sunday, 1 February 2015

First Few Weeks (Week 1-3)

The course has been really great these first couple of weeks. Lectures are very interesting so far and I've learnt quite a lot in the course and each week I've encountered something new! Among the many things we've focused on is object-oriented programming and inheritance. We've finished an entire assignment while using those concepts as well!

The first week was pretty good. Mainly review so I didn't have that many questions. It's been a while since I took CSC108 so the first week was a great way of reminding me of things I was a bit unsure of.  An example would be the difference between using is and  ==, which is just one checks their values while the other looks at the memory address.

Object oriented programming was a big thing we looked at it in week two and the overall idea of it was pretty straightforward, but I found implementing it wasn't as easy. During the assignment, the designing process probably took my group the longest time. We had to completely organize things based on their functions and purposes. When we actually got that done, implementing it wasn't as bad. It probably is better that we did plan out some things because if we didn't know what we were going to do and just write the program, then maybe we'd find an error or it didn't really make sense last minute. That would have been a nightmare to change everything around.

By the third week we were mainly looking at inheritance. Again the idea wasn't so bad and it was pretty interesting finding out a new way to organize code so it wouldn't be too redundant. We used inheritance in our assignment too which was great practice of seeing how that worked out. I did learn a new way of writing list comprehensions too which was writing it as one line rather than multiple. We also briefly looked at stacks which at first I didn't really get that much. I thought it seemed very simple and it didn't seem to really do much. Reading through piazza and looking up on google showed that it can be very useful with things such as undoing a command we've entered.

So far nothing has been too overly complicated...but let's hope that doesn't change...


No comments:

Post a Comment