Sunday, 1 February 2015

class and subclass

We learned about the basics of class and subclass this few weeks. Although for some simple program, using class seems a bit redundant, but I find that using class makes the program very organized and as the program gets bigger and more complicated, I am sure that making classes and subclasses will help make things much more easy. The concept and methods of class in the first few weeks is not so difficult and pretty straight forward. 


However, the first assignment is a bit confusing. Unlike CSC108, the instructions and requirements of the assignment seems to be ambiguous at first. It seems that I can write anything as long as the game subtract square works. Later, I learned that the assignment requires us to write at least 5 classes. I am struggling with the function and distribution of methods in different classes. After I submit the assignment, I am still not sure what method should belong to which class. Especially for the game_view class, from my understanding, it should interact with the user,  controlling the output of the program and promoting the input of the user. But each game is unique, it will print different things and get different information from the user. I thought maybe creating a subclass for game_view might be a good idea.

Monday, 19 January 2015

Why Geeks Should Write

Why Geeks Should Write


Why geeks should write? I am not a person who likes to write about everything happens in 
my life and posted online. However, I still find that sometimes I need to write something down for various reasons. First of all, geeks also need to communicate with other people through writing, I guess it is always easier to communicate with each other using plain English than employing all kinds of computer codes and mathematical symbols. Comparing to other communication ways, although writing seems to be less direct, but people always tend to put think more before actually writing down something (people have more time to think as compared to face to face communication) which makes communication through writing more efficient and effective.

Second, Writing can improve your analytical skills. When I write something, I have to extract all information form my brain, reorganize them and then put it into words. During this process, I have the chance to review and analyze my own thoughts which may lead me to new inspirations or a better understanding of the current problems. In other words, it clarifies your thinking. Also, if you post your thoughts online, you may get unexpected responses from others that may resolve your confusion. 


Last, unlike computer, people’s memory can be ambiguous over time. It is a good habit to write down some of your thoughts for future reference. You may recall some of the fantastic ideas from the other day, or review some mistakes you made before. keeping record of one’s own ideas, understandings and struggles can be very helpful.