2016年2月24日星期三
week 6 slog
After the reading week, we started learning recursion. As far as I know, recursion is basically a clever function which recalls itself. As I see the examples in class, they all look simple to understand, and also straight forward to trace them. However, as I wish to write a recursive function, I find it kind of difficult since it is easy to make mistakes which will cause the function failed (or repeating infinite times). Overall, recursion looks interesting to me, and I am looking forward to having the chance practicing it in class and in labs.
2016年2月12日星期五
week 5 slog
The labs from last week and this week, were basically writing
codes for Stack, Sack, Queue, and LinkedList, which were materials we learnt
recently. I thought that I handled them pretty well, and it seems like finally
I am on the right track. However, the test on Wednesday this week was harder
than I thought. It was mostly on creating new classes and writing methods for
them. I spent too much time on the first question, figuring out what each
method is trying to do, and spent lots of time writing docstrings for them. It
reminds me that during each lab, I usually spent 20 minutes on the introduction
as well as building the structure in my mind, and used the rest of the time to
finish them. The test was, definitely, much shorter than any labs, and I should
have sped up in order to finish it on time. Therefore, I think my new task
would be trying to speed up during each lab, and practice more on my own.
2016年2月3日星期三
Week 4 slog
This week, the sample solutions for the first two labs were posted online, and it would be a very useful tool to review and get prepared for the test. By comparing the difference between my own classes and the sample solutions, I found myself not that clear with private or public parameters (or functions), and have troubles with inheritance. What's more, I need to use "raise NotImplementedError" properly where needed. This week we talked about stack, sack and nodes, which will be very useful in computer science.
订阅:
博文 (Atom)