However, when I tackle with the assignment1, I feel confused about which method should be used in which class. I can create all the subclasses and write all the methods for that class, but there was a hard time for me to build the general classes, especially when I build the gameview class. Luckily, my group members solve this problem and explain it to me carefully -- Since general classes should work for all kinds of games, so when designing the general class, in this case a general class works for subtract square, just think of that the method I am going to design will work for other games such as chess. Then some methods such as legal_moves will not only apply for subtract square but also chess. Therefore, the arguement needed will not just be numbers, and I should raise the 'NotImplementedError' for that. Finally, I understand that how 'general' my class will be and how the method in that class will be designed.
Friday, January 30, 2015
Week 4
After about a month of studying csc148, I find that this course is like a combination of csc165 and csc108. So far I have learned more about classes, and obtain the ability of implementing a classes and its subclasses. Since I have learned about class in csc108, I feel like it is an easy part for me in the beginning.
However, when I tackle with the assignment1, I feel confused about which method should be used in which class. I can create all the subclasses and write all the methods for that class, but there was a hard time for me to build the general classes, especially when I build the gameview class. Luckily, my group members solve this problem and explain it to me carefully -- Since general classes should work for all kinds of games, so when designing the general class, in this case a general class works for subtract square, just think of that the method I am going to design will work for other games such as chess. Then some methods such as legal_moves will not only apply for subtract square but also chess. Therefore, the arguement needed will not just be numbers, and I should raise the 'NotImplementedError' for that. Finally, I understand that how 'general' my class will be and how the method in that class will be designed.
However, when I tackle with the assignment1, I feel confused about which method should be used in which class. I can create all the subclasses and write all the methods for that class, but there was a hard time for me to build the general classes, especially when I build the gameview class. Luckily, my group members solve this problem and explain it to me carefully -- Since general classes should work for all kinds of games, so when designing the general class, in this case a general class works for subtract square, just think of that the method I am going to design will work for other games such as chess. Then some methods such as legal_moves will not only apply for subtract square but also chess. Therefore, the arguement needed will not just be numbers, and I should raise the 'NotImplementedError' for that. Finally, I understand that how 'general' my class will be and how the method in that class will be designed.
Sunday, January 25, 2015
Why Geeks Should Write
Writing is an essential skill that give us the ability to express our opinions and believes through words and letters. Journalists write to report the news that tells people about the whole event; Authors write stories that let people experience and enjoy the astonishing plot; Scientists also write reports and papers to explain their ideas and support their theories. For computer scientists, writing is also important and necessary.
Similar as all the other scientists, computer scientists also need the ability to write reports and papers that explain their work or codes. Since a large portion of our work are done in python or other computer languages, which are difficult for other people to understand, we have to write descriptions or explanations in order to make our original work easier for other people.
As another blogger pointed out that writing is essential for documentation, which is also an important reason for us computer scientists to improve the ability to write.
In addition, though computer scientists work with computer languages for most of the time, we still use normal languages and live normal lives like others. Writing can improve our ability to observe the world. Through writing, we observe the object or the incident more carefully and meticulous, so we are able to gain better understanding of what we have written. Moreover, good writings reflect good education. As we write more and more, we learn more complicated and sophisticated words and sentences. At the same time, numerous abilities are developed and improved, such as critical thinking.
The benefits of writing are countless. Therefore, all kinds of people, include computer scientists, should improve their ability to write.
Similar as all the other scientists, computer scientists also need the ability to write reports and papers that explain their work or codes. Since a large portion of our work are done in python or other computer languages, which are difficult for other people to understand, we have to write descriptions or explanations in order to make our original work easier for other people.
As another blogger pointed out that writing is essential for documentation, which is also an important reason for us computer scientists to improve the ability to write.
In addition, though computer scientists work with computer languages for most of the time, we still use normal languages and live normal lives like others. Writing can improve our ability to observe the world. Through writing, we observe the object or the incident more carefully and meticulous, so we are able to gain better understanding of what we have written. Moreover, good writings reflect good education. As we write more and more, we learn more complicated and sophisticated words and sentences. At the same time, numerous abilities are developed and improved, such as critical thinking.
The benefits of writing are countless. Therefore, all kinds of people, include computer scientists, should improve their ability to write.
Subscribe to:
Posts (Atom)