Friday, 31 January 2014

Week 4: Inheritance, Exceptions, and Recursion

The vast majority of struggles I have in CS are to do with syntax. I have enough reasoning to figure out exactly what my program needs to do and exactly how it can do that, however, I just don't know how to say it with the correct programming grammar.  For this reason, I had some minute struggles with this past week's labs and exercises.  

At first during the exercise, I learned that I had no idea how to write exceptions.  This caused a flurry of rereading and looking through class materials, as well as a brief scan of other student's questions posted to piazza until I understood that the word I was looking was "raise".  Then my program was fine, except that I misread the instructions and programmed the error to catch odd numbers instead of even numbers.  Luckily the automated report system can catch whenever I make such an error; I really can appreciate how helpful it is.  Other than that, the only thing I had to take time to get used to is the new formatting for the code.  We had a specific way of writing the docstring in CSC108 that I had to adjust slightly for CSC148.  But I do think I am now familiar with it and have made a successful transition.

During the lab this week, we switched partners and I got to work with a new student.  Things went quite well, and I learned a great deal about unittest and inheritance, especially the syntax (!!!) that is required when writing code involving inheritance.  All in all things went well with the lab.  I think that the exercises and labs are excellent teaching tools because I have learned the most through those experiences, since I actually have to think and immerse myself in the language of python when I am actually writing  program.  That, at least for me, has been a very effective way to learn.  Now, I'm just looking forward to the somewhat daunting task of completing the assignment, and with that I am signing off for this week.

Thursday, 23 January 2014

Week 3: Object Oriented Programming

Object oriented programming sounds like a daunting piece of terminology and for the longest time I wasn't even sure what it meant.  I suppose had I paid more attention in my Wednesday evening class, this would have been clear to me.  However, since I was used to CSC108's flipped classroom setting meant that it took me some time to adapt to this new format, despite the fact that all of my other courses are and have been not flipped.  That being said, I think I finally understand the definition thanks to a combination of posted course materials, Wikipedia, and a friend who knows more about computer science than I do.  Now that I know what it means, it's hard to see why I didn't understand before considering how intuitive the words are.  Object oriented programming is literally what it sounds like.  I guess the confusion arose from the fact that I have been learning object oriented programming without really registering in my mind that this was its name, and thus when the terminology was actually introduced, I assumed it meant something new.  That being said, I am certain I still have plenty of new things to learn about Python.

I am feeling comfortable writing new classes, and I am also feeling comfortable with the idea of Queues and Stacks and their respective methods.  All the material I've seen thus far in CSC148 I can logically understand, and the formatting is something I've already seen, as it was taught in CSC108.

So basically, other than a not so epic struggle to figure out what "object oriented programming" actually refers to, I haven't had many problems in the course thus far; the exercise went well, as did the labs.  I am struggling with the first SLOG entry but it will soon be done.  I expect the SLOGs will go better once I have better understanding of what they need to include as well as how they should be formatted.  As such, reading and comparing to other SLOGs once they are published should help.