5 things to do in Bucket List
#10
(11 Feb 12, 03:41AM)Ronald_Reagan Wrote:
for (int i = 0; i <=4; i++) {
    flagScore();
}

You put a space after 'for', a space after '=' but not after '<=' and you put your first brace on the same line.

I hate you.

Not really. I know we all have different writing styles and there's nothing wrong with your's but I'm high-strung from reading other peoples' code and seeing the bizarre and flat out incorrect ways other people write.

For instance, a few days ago I read the source to a program that had a switch statement in it. The case values were keys(It was a keyboard callback function) and in this situation you normally use single quotes around the values(I actually don't know any other way). This subhuman monster was using backticks to open and single quotes to close. Like this:

switch (x)
{
case `a': dostuff(); break;
case `b': dostuff(); break;
case `c': dostuff(); break;
}

That won't even compile. What the fuck is he thinking.

My list:

1. Beat whoever writes that way with a shovel.
2. See 1.
3. See 2.
4. See 3.
5. See 4.
Thanks given by:


Messages In This Thread
5 things to do in Bucket List - by Feng - 11 Feb 12, 03:02AM
RE: 5 things to do in Bucket List - by Mael - 12 Feb 12, 04:57AM
RE: 5 things to do in Bucket List - by Oracle - 11 Feb 12, 05:06PM
RE: 5 things to do in Bucket List - by Orynge - 12 Feb 12, 02:15AM
RE: 5 things to do in Bucket List - by Andrez - 12 Feb 12, 02:15PM
RE: 5 things to do in Bucket List - by Undead - 12 Feb 12, 04:43PM
RE: 5 things to do in Bucket List - by Fate - 13 Feb 12, 08:50AM