It's now the seventh week from the beginning of the CSC148.
I finally tuned in with the idea of packing data and methods into classes. It not only became my way of writing code, but also put this "packing" into my thinking. Although python dose not emphasize the security of member variable of a certain class, but by classing things up, it reduces the possibility of me accessing and creating random variables that flies around in the code.
Also I found some amazing similarities between the way we design our game and the way professionals design a game. I work part time with some enthusiastic people in the mobile gaming area. They implement games by a "Model,View,Controller" approach in which model handles the data and calculations, similar to our Game_State class and Strategy class. The controller links the model with the view,which is another component that display the game, similar to our View class.
I believe by practicing this structural programming, we are one step closer to be a real computer scientist and to develop functional applications on our own.
No comments:
Post a Comment