Saturday, 21 March 2015

week 10 impressions

Week 10 we talked a lot about the previous assignment due the other week, and ways to solve it. A very frustrating aspect was how Heap decided to go over deep copies. Normally I would have been grateful, but the timing of teaching us about deep copies was too late for us to use it. During assignment 2 I had to ask a friend who had already taken CSC148 for help since I couldn’t seem to tackle the Minimax function. He explained to me then what a deep copy is, and that it would help significantly with the assignment. At this point in time, Heap had not mentioned it at all. The assignments have been relatively vague in directions, and the help that he gives either comes a week before the assignment is due, or a week after it is due and it can be extremely frustrating.

Other than that, this week we also learned about assertions and how they can be used in maintaining code after being updated, which is usually added by code in the format:
Assert <condition> , <error_string>

Which is essentially saying if not condition, then raise the error string to avoid bugs that arise from updates.

No comments:

Post a Comment