Wednesday, 22 April 2015

Week 3: Why Geeks Should Write

        Writing is a fundamental skill that is required not only in academia, but also in everyday life. For instance, Life Science students have to write lab reports, English students have to write essays, and even computer science students have to write comments in their programs. Hence, writing is a universal skill that is essential in any subject field. Particularly, in the field of computer science, the benefits of writing include honing our communication skills, helping to keep track of all the important details, and challenging our creativity.

To begin, have you ever been in a situation where you try to explain some scientific concept to your friend, but failed to pass on the idea even though you clearly understood the topic? Well, it means that you did not fully grasp the concept yet. This is because if you actually master the topic, you could have explained it in a way so that your friend would understand. When we write about a scientific topic or even our daily routine, our mind works strenuously in order to express our thoughts in a way for readers to understand. This process requires the writer to constantly rethink about the concept that is to be written, and forces him/her to express ideas in a coherent manner. The writer only finishes the writing when he/she has fully explained and mastered the concept themselves. Hence, writing perfects our communication skills by practicing our abilities to express ideas clearly and explain concepts in a logical way. Also, writing clarifies our thinking by forcing us to solidify our thoughts and knowledge and put them in a cogent order. In the study of computer science, the ability to express ideas are involved in writing comments in programs. This is because programming usually involve a team of programmers who each write code for different parts of the program; therefore, comments are necessary in order for colleagues to understand their partners’ codes. Furthermore, writing practices our ability to think logically, which enhances a programmer’s skill to program in a logical manner.

Secondly, according to Steve Rydz's (http://steverydz.com/2013/11/19/keeping-a-debugging-journal/) and Tinypig’s  (http://tinypig2.blogspot.ca/2011/06/keep-debug-journal.html) slogs, keeping a debugging journal is extremely helpful. By recording problems and hurdles encountered during programming and their respective solutions, the programmer can see his/her own blindspots and identify troubling areas that call for improvement. Furthermore, if in the future a similar problem is encountered, the programmer can quickly remember its solution by reading previous journal entries. Or even better, the programmer can quickly come up with a solution right on the spot, because he/she understood the problem from writing down the solutions before. Thus, writing a debugging journal helps the programmer to better understand his/her own weakness, and reinforces the programmer’s understanding.

Finally, programmers don’t have to write about academic articles, rather, they can write about anything. Even if the writing is about the writer’s complaints and daily routines, or even a random anecdote or short stories created by the writer. This is because writing itself forces the writer to constantly come up with new and creative ideas. By simply just writing about anything, a programmer can enhance his/her ability to be innovative and creative. Furthermore, innovation is a vital part of programming since algorithms require creative solutions. Thus, in conclusion, programmers should view writing as a daily homework, and spend at least ten minutes everyday just to write.  



Wednesday, 1 April 2015

Week 12: Reminiscence and last week of class!

        In the last week of class, my emotions were a mixture of euphoria and nervousness. I am elated that summer break is approaching, however I am also nervous about the upcoming exams. Here is a summary of what was taught each week:


Week 1: Review of CSC108 where the  implementation of class was learned. Init, and eq methods were reviewed.

Week 2: Continue to review CSC108 regarding the implementation for rep and str methods. The property mechanism was taught along with introduction to abstract data types such as stack and queue.

Week 3: Introduction to exception and tracing recursions

Week 4: More tracing of recursions

Week 5: More on recursion along with the review of writing unittest.

Week 6: Structure and implementation of a tree involving usage of recursions (count_leaf, count_node, etc.)

Week 7: Binary search tree and three methods of tree traversal (inorder, postorder and preorder).

Week 8: Class LinkedList and LLNode. Recursion was practiced through writing methods for LinkedList (append, prepend, delete).

Week 9: More implementation of binary search tree and recursion.

Week 10: Discussion on assignment 2’s strategy minimax. The professor also taught ways of choosing test cases for an unittest.

Week 11: Types of sort such as quick sort, merge sort and etc. Also definition of big-O and time complexity such as lg(n) are taught.

Week 12: Leaning more about big-O


Looking back over the course, I realized that more than half of the materials learned in class involved implementing recursion. Hence, I should focus more on practicing recursions in order to prepare for the exam. Furthermore, throughout the term, although I have encountered many conceptual hurdles, I solved them nonetheless. Some major conceptual hurdles include understanding recursion and linked lists, where both problems were already discussed and resolved in my slogs. Lastly, strategy minimax in assignment 2 was the most difficult part in all three assignments. What made writing assignment 2 much harder was that help centres are unavailable due to the strike. Hence, I am really glad that strike is over. 

In conclusion, although I used to dislike writing slogs, I now find it really helpful. I would definitely recommend later years to write weekly slogs  since writing improves the understanding of complicated concepts.And lastly, I wish everyone good luck on their respective exams!