Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

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?

Slashdot Top Deals

Understanding is always the understanding of a smaller problem in relation to a bigger problem. -- P.D. Ouspensky

Working...