Saturday, 24 January 2015

Week 4: CSC148 - The First Few Weeks Impression

Coming into UofT, having no coding experience and despite choosing Computer Science as a major, I came in with very little confidence regarding coding for my Fall CSC108 course.

Thus far in the first few weeks of Winter CSC148, I have adapted quite well to the pace of the material. Specifically, a lot of the concepts such as creating classes, subclasses, inheritance and providing the three methods usually found in classes (__init__, __str__ and __eq__) were all at least briefly covered in CSC108. Naturally, I adapted what I learned in CSC108 to learn __repr_, a unique in my eyes; it's where you can create your own string message after the variable assigned to a class in an assignment statement is called.One completely new concept I learned is the implementation of the turtle in python. It's animation were pretty cool, but it is still somewhat difficult to grasp your head around. My main troubles early in the course was understanding the purpose of Stacks and why they need their own Class. I received my answer quickly on Piazza, however. It's merely to help us organize information and represent how call stacks work. It's been a refreshing few weeks at CSC148!

Thursday, 22 January 2015

Week 3: Why Geeks Should Write!

 Why Geeks Should Write!


I feel everyone can relate to this experience: a deadline that is dangerously close and you have yet to find what the problem was with your code. For a geek, there is no worse feeling than lack of time and failure to discover debugging issues within code. Computer Scientists (or geeks, as the title says) must absolutely find a time slot where they can write a weekly blog post for their own benefit! Unless you're a robot, it is extremely difficult to keep track of every single minor detail involving your code and from my personal experience from CSC108, it was quite easy to waste a lot of time trying to find the specific lecture video or lecture note to debug my code efficiently.While you may mock me now, I was extremely confused with the iteration of the 'for' loop vs. the iteration of the 'while' loop as well as the implementation of UnitTests for the longest of time in that course. That mitigated to all the assignments as countless hours were wasted, constantly referring to the same lecture video for a refresher and attempting to re-learn it over and over again. It would've been much better if I implemented my own 'debugging log' like many computer scientists do to save time and use it for reference to find bugs within code. Recording your own blog of debugging experiences may be read by someone who can lead you to the correct path in understanding code better, or you could simply be passing the torch to someone who is experiencing similar difficulties and can clear that up by viewing your blog's comment section. I hope with the key reason of saving valuable time will be enough to convince you to start writing as it will only further benefit you and others in the future! As my idol Bruce Lee once said, 'If you spend too much time thinking about a thing, you'll never get it done!'