Sunday, 15 February 2015

Week 6: Summary of OOP

Summary of OOP


Object oriented programming has always been a very satisfying aspect of computer science for me. When I first started programming, I constantly thought to myself "there must be an easier way to do this" as I scrolled through my horribly messy and unorganized code.  When I first discovered OOP, it not only kept my code neat and modular, but kept all of the methods organized, and made documentation easier.  This made certain problems much easier to get around, such as problems related to game design, which I was very interested in at the time.

So far Object Oriented Programming in Python, as taught in CSC148 has been very simple to me. Pyhon syntax for objects is very simple and English-like, which pretty much follows par with the rest of Python. One thing I found challenging was the custom of naming variables with an underscore at the beginning to prevent others from accessing them without using a get method.  I'm accustomed to having public and private variable in Java, so it's strange to me that private variables are not enforced, but politely followed by the python community.

Sunday, 8 February 2015

Week 5: Impressions of Week 4

CSC148 Week 5:



The main event of this week was term test 1.  My main focus leading up to this test was preparing a good aid sheet, as in the past the creation of the aid sheet has been a very useful study tool. I hand wrote it and included examples of functions and class that I would be able to quickly get information from during the test.  When Wednesday came, the test was much easier than the previous year's tests.  I was expecting much more on exceptions, which is probably my weakest area in the course so far. All in all the test went well and I didn't look at my aid sheet a single time, which showed me that the creation of the sheet was more important than the sheet itself.

Tuesday, 3 February 2015

Week 4: Impressions of the First Few Weeks

CSC148 Week 4:



As someone who's been wanting to study Computer Science at University for a long time, going to these lectures and tutorials has been a very good experience in these past few weeks.  The highlight this fat has been the first assignment, which was more complicated than my group and I had initially expected. We put roughly 10 hours into working on it, and it came out very well.  The most challenging aspect of it was figuring out how all of the classes and subclasses were to be organized.  In the end we got it all down and the user interface came out to be very nice and readable.  Even with the simple strategy, subtract square is a pretty interesting game to play, although I suppose games are always more fun when you've programmed them yourself.