Musical fun with code
-
I recently came across some of my old code, while preparing for a rewrite:
"boolean dontstop = false; // ..till you get enough, dont stop keep on...."and who could remember the 180 hours of overtime they paid out that one month
"//they all have to be the same either all filled in, or all empty. Looks ugly, but I dont care. tired...consciousness slipping away....ZZZZZzzzZzzzz..."
-
int dontstop, believin, streetlights, people;
Of course TRWTF is having a "dontstop" variable in the first place. Why the double negation? dontstop = true means the same as stop = false, but less clearly.
(Also, my personal favourite is: int foo = 0xAAAAAAAA; //RGH!! )
-
@lolwtf said:
dontstop = true means the same as stop = false
Also keepgoing = true. I know I've used kgo and kbye as variable names (k is not a prefix).
I've been suffering from insomnia lately, and with our slow internet at work I fell asleep waiting for Google yesterday.
-
@lolwtf said:
Of course TRWTF is having a "dontstop" variable in the first place. Why the double negation? dontstop = true means the same as stop = false, but less clearly.
I always find that NOCOUNT in SQL makes me stop to think. But that could just be me.
-
@lolwtf said:
"dontstop" variable
Pah! I inherited a script that had a "text_not_skip" variable. It was extremely confusing, and it took me quite a while, but I managed to eradicate the last traces of its horridness.
-
@lolwtf said:
int dontstop, believin, streetlights, people;
Or if you wrote it a little later:
int dontstop, nevergiveup, holdyourheadhi, andreachthetop;
-
I thought this was about musical fun with code.
This is not the case.
I am disappoint.
-
I once saw code that after a break; (done as a result of reaching the end of the parsed string) had the following comment:
/* "This is the End", (c) J. Morrisson */
-
bool dontStop; // thinkin about tomorrow
bool HAMMER_TIME = !dontStop;
bool inTheNameOfLove = HAMMER_TIME;
bool do = true, doNot = false;
catch (Exception ex)
{
if (do || doNot)
throw new ScriptParsingException("there is no try");
}