Saturday, January 31, 2015

How Assignment 1 was done

I think that the reason why assignment 1 was so difficult for me and my group was because we tried to figure out the entire assignment as one entity. We spent hours trying to conceptualize all of the classes at once which didn't get us far.

Eventually, we gave that up and then we just started writing our entire game into the if __name__ == '__main__' game_view.py. Then, we took this code and pretty much copied and pasted it into sub classes like SubtractSquareState that we knew we needed. Then we declared the parent classes like GameState and added generic methods. We also went to the CS Help Centre and the TA was really good and explained a modular way of programming.

What we did right in this assignment is start fairly early where we gave ourselves time to mess up and be confused. I think that I got into the habit of writing docstrings right when I start writing a function rather than going straight to the code and then back tracking.

For the next assignment, I need to learn how to think and program in modules. My plan is to create method and classes that are black boxes that takes input and gives output. I don't need to remember exactly why something works and instead just how to use it.

I also want to use a real time collaboration program like Google Docs except that doesn't format text so the text can be copy and pasted into Wing and compiled. We had a problem of having more than one copy of the program and had to spend time trying to figure out what didn't work. I tried to create a log that had every small change documented but that just ended up being really long. I still want to try the log but the changes I will record will be more general.

Wednesday, January 21, 2015

Why Geeks Should Write

Professor Heap said during one of the first lectures that computer science is all about collaboration. That ideas struck me as odd until I realized that my view of computer science is obscure and not representative of what it at all. My experience of working at home alone and trying to do simple (in the scope of things) assignments and my exposure to geeks in the media is very inaccurate.

In movies, there is always the trope of the lone computer geek who, with his (it's almost never a her) amazing talent and perseverance, prevails and manages to create something amazing. However, that isn't all that common in practice. Wikipedia is the result of millions of people who have. Every single software company (probably, I'm making assumptions here) has teams of developers rather than individuals working on separate projects because it works and it's a profitable practice. New ideas often sprout when the ground is cross pollinated with diverse ideas.

Also, writing lasts longer than talking (which lasts a moment) and if a geek is really passionate about a topic, it could prove to be useful to someone else who can learn from it. With the help of near instant communication via the internet, we can collectively learn and build a better world.

Why Compsci and the Humanities aren't that different

First of all, I would like to reexamine the divide between "mathy" compsci and literary humanities.

Ultimately, learning, regardless of which academic field, asks similar questions and is all about understanding the universe.

This Vlogbrothers video explains how the myth of the education continuum from literature/humanities to math has no basis.

https://www.youtube.com/watch?v=9jFQR2FUEm4

Interestingly, there is philosophy at the deepest levels of math. Apparently, there is legitimate debate on whether math exists outside of humanity. Here are two videos that introduce the subject.

https://www.youtube.com/watch?v=X_xR5Kes4Rs&index=10&list=WL
https://www.youtube.com/watch?v=TbNymweHW4E&index=9&list=WL


Computer science can also be great tool in English. U of T's very own Dr. Lancashire has used algorithms similar (except obviously more complicated) to the Assignment 2 in CSC108 on authorship to uncover that Agatha Christie had Alzheimer's. I think that's amazing.

Here is the powerful story.
http://www.radiolab.org/story/91960-vanishing-words/