It has been about 3 weeks since I took
CSC148 course. And I think it would give me a new impression of programming. In
first three weeks, the course focused on the class, especially stacks,
inheritance and recursion. And we have written the first assignment in this
semester.
The first assignment is to design a
two-player game named subtract square, and the general game state will be used
through the term. I have learned a lot through this assignment.
First of all, the most important thing
I learned is that the assignment requirement should be read carefully and every
detail should be memorized or recorded. At first, my partners and I didn’t
notice that five classes were needed, and we wrote the codes in one class,
which was obviously not satisfied the requirement. After asking TAs, we had to
rewrite the whole program. Further and more eventually, it is important to
indicate what should be ran in every class, and docsting as well as comment
must be clearly written. These comments would become essential clue. What’s
more, order is important in python, especially ‘or’. If one statement is fail,
computer will not evaluate remaining statements. Thus, the order of these ‘or’
statements should be written in the most suitablde order. Finally, debugging is
vital. This can help us to find the mistakes we did not pay attention.
Overall, writing a perfect program
should think over a lot things. It cannot be completed in few days without
careful consideration.
No comments:
Post a Comment