2015年2月12日星期四

week6


Firstly, I learnt some types of sorting algorithm this week through Internet, such as merge sort & quick sort & bubble sort & heap sort etc. Then I got an acknowledge of unit tests, PyUnit specificlly. I think it's very useful as you can prepare for a set of cases, then use them over and over to see where's the bug in your codes. I think I will save a lot of time for using unit tests later, and it will also let me grouping my test cases for different use such as boundary cases/ invalid inputs / huge data & long computing time cases etc. Besides, I also learnt that parentheses, brackets, braces matching is stored at stack and done by compiler. From this lecture, the importance of parentheses matching also been emphasized, and I'll keep in mind checking every parentheses before run the codes.

没有评论:

发表评论