Wednesday, January 28, 2015

Slog2 - first impression for past few weeks

For the past few weeks, we learned about designing class,subclasses, and recursion.
Since I have knowledge about some of basic parts in class from CSC108, I was able to understand the methods such as __init__, __str__, and __eq__. However the method called, __repr__ was confused a little bit at the first look(I could not find the difference between str method and repr method.), although now I partly got the difference between them. (Method __str__ returns a human-friendly string describing the object while __repr__ returns a string that can construct an object with the same value. right?)

The hardest thing on "class" was figuring out what methods I should write, and choosing the appropriate name for them. But this becomes quite better now by doing practices through the assignment1 and put and see the questions in piazza.

So here is the key points:
    class name -> the most important subject
    method name -> the important verbs(that explain what I am supposed to do)

Also looking both instructors' lecture slides helps me a lot, since two professors' styles of explanation are different in some parts(for some point, Danny Heap's explanation is more understandable while for some other point, Diana's slides are more understandable), I think reviewing both professors' slides would be helpful for understanding.

Wednesday, January 21, 2015

Slog for Week3: Why geeks need to know how to write

According to the links that Professor Danny Heap posted on the course website, 
geeks need to know how to write the programming process into english word because of some following reasons.

First of all, we need to know how to write the programming process since it makes our job much easier. For example,  Steve Rydz and the blogger of Tinypig blog say that writing the exact programming problems into english word can reduce the work in future. They both mention that whenever they face with debug problems, usually they spent few hours to few weeks, therefore in order to solve them fast, it is highly recommended to write 'how you fixed the problem you encountered.'


Moreover, Joel Spolsky argues in her article, "Advice for Computer Science College Students," that it is important to communicate own's ideas to others to become a great programmer, and not just knowing variety of programming languages(she mentions that it is a tolerable programmer). In order to communicate own's ideas, she recommends to start from writing a journal or weblog to practice expressing own's programming codes, so that other people can recognize whether your codes are valuable and if it is, they might use it instead of rewriting. 


Based on bloggers and writers, who experienced the positive views of writing in computer programming, geeks must know how to write the explanation of own's codes to persuade others and the problems in programming process so that they can fix them faster and easier when geeks face them later.