Wonderful Golf - Art of Programming

Picture: /articles/2018-2019/images/hugues_03_wonderful_golf_entete_1.png Summary: Art of Programming

Art of Programming

Art of Commenting

This week, I had to improve all the scripts in my game. It was a tough work because after almost 3 months without opening this project, I forgot the meaning of many structures in …

Picture: /articles/2018-2019/images/hugues_03_wonderful_golf_entete_1.png Summary: Art of Programming

Art of Programming

Art of Commenting

This week, I had to improve all the scripts in my game. It was a tough work because after almost 3 months without opening this project, I forgot the meaning of many structures in the code.

At the beginning, I was thinking it will be good to comment all the lines of my code... but in the facts, I was so enjoying when something works that I simply continue to go far away creating the game... and I almost forgot to comment my work.

So this week was very appreciate because it was necessary to leave comments. Now I can go on and I learned a lot. Usually, in my life, when I do something complicated mostly on computer, I leave some informations somewhere on how to solve problems... now, I will do the same for my scripts.

Any Comments ?

This is a little exemple of good comments

At the bottom, you can see the description of this script. Just after, you will see the detail of the first fonction and at the end after all the -------- the fonction itself.

Proceeding the way is much more comprehensive for coders but also for non coders.

Game Artiste : Vanessa Bertozzi Game Designer : Hugues Beaumesnil