GMWolf
aka fel666
I have to say university courses (mine, at least) really dont help with learning helpful commenting.
Early in the first year, they would ask for use to comment every single line. for example:
(though we dont code in GM )
Thats increadibly stupid, as you are just rewriting the full code in english. Since i already new programming fundamentals, i certainly lost a couple marks for insuficient commenting..
Luckily that was only for the first couple weeks in general programming, but when writing assembly, we are still expected to comment everything like that -_-
Just as Yal said, Its much better to write what your code is about to do. eg:
Early in the first year, they would ask for use to comment every single line. for example:
Code:
var x = 10; //create new variabble called x, and assign 10 to it.
while(x > 5) { //while x is greater than 5 -_-
x -= 1; //subtract 1 from x
show_debug_message(x); //print x to consol
}
Thats increadibly stupid, as you are just rewriting the full code in english. Since i already new programming fundamentals, i certainly lost a couple marks for insuficient commenting..
Luckily that was only for the first couple weeks in general programming, but when writing assembly, we are still expected to comment everything like that -_-
Just as Yal said, Its much better to write what your code is about to do. eg:
Code:
//Print values 9 through 5.
var x = 10; //counter
while(x > 5) {
x -= 1;
show_debug_message(x);
}