Comment Re:Variety (Score 1) 1267
Silly practices like commenting every line of code, no matter how pointless:
// create counting variable and initialize it to 0
int count = 0; // create a variable
int a; // create b variable
int b; // loop
do
{ // get result of a_func
a = a_func(); // get result of b_func
b = b_func(); // print the product
printf("%d\n", (a*b));
} // loop until counter is 10
while count
The problem is not just a lack in teaching; it's a lack in thought on the part of the taught as well. When you churn out drones, they tend to act like drones.
Kinda like the tag parser in slashdot, which can't tell the difference between an end tag and a double-slash comment, swallowing a newline instead and screwing up the code section above. Ever hear of bison, guys?
int count = 0;
int a;
int b;
do
{
a = a_func();
b = b_func();
printf("%d\n", (a*b));
}
while count
The problem is not just a lack in teaching; it's a lack in thought on the part of the taught as well. When you churn out drones, they tend to act like drones.
Kinda like the tag parser in slashdot, which can't tell the difference between an end tag and a double-slash comment, swallowing a newline instead and screwing up the code section above. Ever hear of bison, guys?