I think that the reason why assignment 1 was so difficult for me and my group was because we tried to figure out the entire assignment as one entity. We spent hours trying to conceptualize all of the classes at once which didn't get us far.
Eventually, we gave that up and then we just started writing our entire game into the if __name__ == '__main__' game_view.py. Then, we took this code and pretty much copied and pasted it into sub classes like SubtractSquareState that we knew we needed. Then we declared the parent classes like GameState and added generic methods. We also went to the CS Help Centre and the TA was really good and explained a modular way of programming.
What we did right in this assignment is start fairly early where we gave ourselves time to mess up and be confused. I think that I got into the habit of writing docstrings right when I start writing a function rather than going straight to the code and then back tracking.
For the next assignment, I need to learn how to think and program in modules. My plan is to create method and classes that are black boxes that takes input and gives output. I don't need to remember exactly why something works and instead just how to use it.
I also want to use a real time collaboration program like Google Docs except that doesn't format text so the text can be copy and pasted into Wing and compiled. We had a problem of having more than one copy of the program and had to spend time trying to figure out what didn't work. I tried to create a log that had every small change documented but that just ended up being really long. I still want to try the log but the changes I will record will be more general.
No comments:
Post a Comment