2015年4月6日星期一

Final Slog

 The semester has end and this is the last slog of my CSC148. 
 Now, looking back over this course, I 
really learned a lot. Now I understand that CSC108 is just a course that taught us how to code in
python. CSC148 is the course that lead us into the field of computer science. We learned how to 
create a game by assignment1. Although we were 
only required to implement random strategy in 
assignment1, I still feel it very difficult 
because it was the first time that I implement a 
whole game on my own, well, not on my own exactly, with my team mates, but it was their first time 
too. We don't know what classes to create. But we figured it out with the help form Piazza. After 
assignment1, I figured out how to implement a game and the basic concept of object-oriented 
programming. Then it came assignment2. This time the “class” thing was not the most challenging part, the strategy was. We stuck on strategy minimax 
fora long time. After figuring it out, our skill 
of implementing recursive functions really 
improved a lot. Assignment3 was more like a lab 
exercise.
 In lectures, we learned object-oriented 
programming, recursion, tree, linked list. Last 
few lectures we talked about the efficiency of
functions. The same topic was also mentioned in CSC165. 

 In conclusion, CSC148 is a very exciting 
and challenging course.  

A Look Back

 I revisit all my slogs, and I found that I agree with myself in every slog. But after reading some other people's slogs, I realized that although I didn't say something that I don't agree with now, but my point of recursion was very incomplete and useless.
 In my slog Summary of Recursion, I just 
simply introduced what recursion is and gave some 
example in the text. Yesterday I saw my friend 
Yuli's slog. She said that she didn't agree with 
herself because she used to think recursion is 
interesting and easy! I think the most important 
thing she wrote about in this week's slog is the 
method to implement a recursion function that she 
concluded herself: “The key part of recursion is 
to figure out the base case and the body. So, just like the instructor says, every time you write a recursive code,work from the base case up, and then test your base case. Once you are sure it works, test a problem one step larger.” I think this is a very useful conclusion. My friend Wenzheng also
choose to wrote about recursion in this week's slog. He gave two tips on implementing recursive 
functions: “Understanding the algorithm before 
writing the function.” and “Drawing a picture.” 
And he said that drawing a picture is the most 
important step because it helps you understand how the function work.
 The tips from Yuli and Wenzheng are really useful, I will use these tips to master recursion.