Monday, 6 April 2015

csc148 slog for week 8

Understanding of Linklist Node


After learning the BTNode and Binary Search Tree, we began to meet a new concept of Linklist Node. At first the concept totally confused me, but I felt glad I finally get the idea of it. One day before Term Test2 I asked my friends and knew that self.next include the whole stuff after self.data rather than only the value of the next node.

Also we have to use the idea of setting new variable such as new_code and current_node to complete a series of methods in lab practices. I love this idea, for it is easy to understand and make use of. Sometimes I forgot to think about link.size, which may make huge trouble.

In the picture, the method 'add_node' is a primary method for Linked List. For linking two nodes, creating a new node is a good and easy way.   
On the lab practice, I learned 'assert', which is an another coding statement like 'if ...not' plus 'raise ImplementedError()'. Obviously, 'assert' statement seems simpler.

Thursday, 2 April 2015

CSC148 week 12 Slog

Last Impression on csc148


I have learned a lot in CSC148. Class, subclass and recursive funtions and trees are the main parts for this course. I am still confused about some tricky problems such as 'minimax' and 'queue'. Actually I am not so confident of my understanding of these modules.

Trees make me frustrated sometimes. Even I think I totally know what Tree is, I
often feel screwed when I see A3 problems and lab practices. Sometimes he answer for lab practices, but when it comes to similar type of other coding problems,it sucks. I can only try to remember all the codes. Hope that the final is easy.

Thursday, 12 February 2015

csc148 Week 6 (Feb 12)

Summary of Object Oriented Programming


In fact, object oriented programming is the most controversial part for programming. When we comes to logic, it is absolutely right if it works as what we want in the code. Otherwise, it is wrong. However, the ways of designing a program varies a lot. There is no perfect object oriented programming but we can always make it better and better.

When we see a problem to design a class, the first step is to identify all objects they want to manipulate and how they connect with each other, which is not simple. This step may be time-consuming because we have a clear mind to program only if we get the general idea of the whole class.

How can I create a well-formed class?

Through about a month's study, I summarize some key points: set up more objects, design loose classes, emphasize type contracts. Objects should be clear and each of them has its function so that we can get what we want easily. Use more 'Not Implemented Error' to make classes loosely for us to easily reuse. Type contract tells us specific programming information so that we can avoid a large number of bugs.

I wonder what a 'block' is. Next time I will ask my TA.

I did not do well in the test and quizzes. But so far I have tried my best to study this course and really like it. I have read many blogs on the course websites and finally found one about which I have the same feeling. 'Yue Jiang' found very short codes which are hard to understand and imitate on the past exam.
When I first saw them, I just felt like that I was cheated by csc108. At today's labs I tried one-line code for several method and it really amazed me. I am glad that I can learn something by myself.

'Yue jiang''s blog:   http://jiangyuecsc148.blogspot.ca/


Thursday, 5 February 2015

csc148 slog for week5 (Feb 5)

Impression on recursion and the whole course so far


Recently we are learning recursion.I struggled to understand the idea and codes of recursion for a whole night and finally could apply it.

Although I did lots of revision, I felt frustrated after the test. I had no enough time to do it! It took me only 5 minutes to finish the recursion problem, and all the rest time to deal with those two classes. I could hardly understand the instructions in such a short time. I read the questions many times and just did them to my understanding.

To me, recursion is much easier than class and subclass. Recursion is more about pure coding. For class, we need to have a well-structured design and make the class understandable and reasonable, which is annoying to some extent.

I wonder how we can use '__defaults__' method. I have seen it on the course websites and knew the basic rules of this method but can't apply this well.

I randomly saw some other slogs by my classmates. And I found I had the same feeling with 'greywolf'. We are nervous, confused but still very into this course. Last year I didn't feel too much excitement about Computer Science, but now I think it is cool, even if I haven't been good at it so far. That's why I have motivation to try hundreds of times to make my file work in Shell during the whole night.

'greywolf's slog address:   http://greywolfvaind.blogspot.ca/


Thursday, 29 January 2015

Jan 29 csc148Slog for week 4

hi i'm charlie
i'm awesome!
give me views on my site please
thank you!!

to TAs: Please give me perfect mark :D

148 is much more difficult than 108 for me. I have no experiences in computing before and saw many of my friends can finish the assignment efficiently. Thus, I feel a bit frustrated. Sometimes I feel numb because I can't clearly understand what the professor says. But so far, I've learned something new in this course such as subclass and recursion and I'm still trying to master them.

It's reasonable that a student can't absorb and fully apply anything that they have learned in the lectures in a short time. So I am patient. I have spent lots of time on lab practices. I am trying to focus on each lecture and catch up with other intelligent students. I am looking forward to my study next week.

Thursday, 22 January 2015

148 week3 blog

Why should geeks write?

Geeks are special creatures. Biologically, they are the same as common human. However, sometimes the thoughts and behaviors of geeks seem crazy, but still creative and amazing.

Most geeks are hard to understand, so they should have more practice of writing to make others fully understood. Geeks are lonely mostly because they can't perfectly express their thoughts and their opinions are often different from others' opinions. 

In CS field, there are many geeks and also they are invariably geniuses. Maybe they can write a group of codes that change our whole life. But still an super programmer should know something about our common life so that he can do something really for us. For instance, How can they make a perfect operating system without ignoring our habits on using computers? And writing is a method to connect with others, to let others know more about your ideas and the good points of your software.