Comment On Schizophrenic Haiku Comments and More

"I found a schizophrenic comment that either intentionally or unintentionally happens to be a haiku," wrote Ben Vanik, "svn blame says this single line is the work of 3 different people across 3 years of coding." [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:01 • by MicrosoftDev (unregistered)
FIRST!

this text for fooling the spam bot!

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:06 • by coward (unregistered)
should be FRIST here, no cannot because, I wasn't fast enough yet!


Re: Schizophrenic Haiku Comments and More

2012-01-16 09:16 • by MrBester (unregistered)
256 is 80 in hex so there's a new WTF where a hex number is read as a decimal number and someone needed a constant

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:19 • by Mathlete (unregistered)
What is that rubbish?
Lines of five, seven and five
give a real haiku.

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:23 • by DCRoss
371953 in reply to 371951
MrBester:
256 is 80 in hex so there's a new WTF

Yes, that is a new WTF. When did people start referring to base 32 as "hex"?


Re: Schizophrenic Haiku Comments and More

2012-01-16 09:25 • by Mr Clever Ideas (unregistered)
371954 in reply to 371951
MrBester:
256 is 80 in hex so there's a new WTF where a hex number is read as a decimal number and someone needed a constant

I assume you mean duotrigesimal, not hex? :-)

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:26 • by Nagesh (unregistered)
In Hyderabad, if you are writeing code this teribal, you are ending up on unemployment bench.

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:26 • by Mr Clever Ideas (unregistered)
Oh - DCRoss posted a second before me. Base 32 as "hex"??

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:27 • by PiisAWheeL
371957 in reply to 371952
Mathlete:
What is that rubbish?
Lines of five, seven and five
give a real haiku.


Lead flies from the tube,
Brass, spirals down towards the ground,
As does the victim.

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:32 • by does not matter (unregistered)
The JUnit test case makes sense, at least a bit.
If you start a JUnit test class without any test, it fails with an exception. But if you want to have a super class for your tests, it usually does not contain any tests, and JUnit will accuse this.
Solution: Just implement such a non-sense test and be fine.

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:33 • by moz (unregistered)
Should let you all know
That Haiku-style comments suck

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:35 • by Bob (unregistered)
The theory that a haiku contains 17 syllables and that there's anything special about this is singularly a geek meme.

That this is also considered a form or poetry demonstrates that most geeks should stick to what they're good at.

For future reference, things you might find in a good haiku:
. 17 morae
. a seasonal reference
. a juxtaposition separated with a "cut"

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:37 • by Mathlete (unregistered)
371961 in reply to 371959
moz:

Should let you all know
That Haiku-style comments suck


*Insert missing line*

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:38 • by Lockwood
371962 in reply to 371957
5.8.5. Fail.
Brass falls down towards the ground

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:42 • by Mathlete (unregistered)
371963 in reply to 371960
Bob:
The theory that a haiku contains 17 syllables and that there's anything special about this is singularly a geek meme.

That this is also considered a form or poetry demonstrates that most geeks should stick to what they're good at.

For future reference, things you might find in a good haiku:
. 17 morae
. a seasonal reference
. a juxtaposition separated with a "cut"


I bow down in awe
at your skill to summarise
Wikipedia.

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:51 • by PiisAWheeL
371965 in reply to 371962
Lockwood:
5.8.5. Fail.
Brass falls down towards the ground


I was counting towards as 1 syllable... sometimes my memory gets retarded on me. Anything else you want to nitpick at today?

Its been a while, maybe it was brass spirals towards the ground.... I no longer care.

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:52 • by RichP
FRIST!

// Edit as necessary...
#define FRIST 16

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:54 • by Charleh

I bow down in awe
at your skill to summarise
Wikipedia.


Haha, that comment
Had me in fits of laughter
Do another one!

Re: Schizophrenic Haiku Comments and More

2012-01-16 09:59 • by sehe (unregistered)
Jimmi found yet another wrapper for the illusive '!' operator.


Pretty sure "for the elusive '!' operator" was meant

Re: Schizophrenic Haiku Comments and More

2012-01-16 10:01 • by Nagesh (unregistered)
371970 in reply to 371958
does not matter:
The JUnit test case makes sense, at least a bit.
If you start a JUnit test class without any test, it fails with an exception. But if you want to have a super class for your tests, it usually does not contain any tests, and JUnit will accuse this.
Solution: Just implement such a non-sense test and be fine.

Why you have JUnit test with no test method? Sound like JUnit write for throw exception.

Re: Schizophrenic Haiku Comments and More

2012-01-16 10:04 • by Steve The Cynic
371971 in reply to 371969
sehe:
Jimmi found yet another wrapper for the illusive '!' operator.


Pretty sure "for the elusive '!' operator" was meant

Might have meant a synonym for illusory

Re: Schizophrenic Haiku Comments and More

2012-01-16 10:05 • by Boog, I Am Your Father! (aka Behold The Return Of Zunesis!)! (unregistered)
371972 in reply to 371957
PiisAWheeL:
Mathlete:
What is that rubbish?
Lines of five, seven and five
give a real haiku.
Lead flies from the tube,
Brass, spirals down towards the ground,
As does the victim.
Cum stains my ceiling
Memories of bad touching
The midget is paid

Re: Schizophrenic Haiku Comments and More

2012-01-16 10:08 • by bashō (unregistered)
371973 in reply to 371963
Bob:

17 morae
a seasonal reference
juxtaposition


FTFY

Re: Schizophrenic Haiku Comments and More

2012-01-16 10:25 • by ¯\(°_o)/¯ I DUNNO LOL (unregistered)

private static bool InvertBool(bool org)
{
bool returnValue = false;
if (org)
{
returnValue = false;
}
else if (!org)
{
returnValue = true;
}
else
{
returnValue = FileNotFound;
}
return returnValue;
}

Fixed.

Re: Schizophrenic Haiku Comments and More

2012-01-16 10:29 • by lesle (unregistered)
371975 in reply to 371965
Towards is one syllable to me, also. I'm U.S. Midwest, overlaid with North Florida/South Alabama. Stand your ground!

Re: Schizophrenic Haiku Comments and More

2012-01-16 10:44 • by lemortede (unregistered)
371976 in reply to 371975
Yea, I think its 1 syllable too, but the internet disagrees with me.....But then again, I don't pronounce the 'T' when I say mountain.
My grandma on the other side of the country adds an 'R' when she says wash. Its 'warsh' to her.
I still have trouble understanding people in Boston.
Regional dialects and accents can be fun.

Re: Schizophrenic Haiku Comments and More

2012-01-16 10:57 • by anonymouser (unregistered)
371977 in reply to 371975
lesle:
Towards is one syllable to me, also. I'm U.S. Midwest, overlaid with North Florida/South Alabama. Stand your ground!


Ah, so you pronounce it as if it rhymes with cord.

Re: Schizophrenic Haiku Comments and More

2012-01-16 11:03 • by Steve The Cynic
371978 in reply to 371976
lemortede:
Yea, I think its 1 syllable too, but the internet disagrees with me.....But then again, I don't pronounce the 'T' when I say mountain.
My grandma on the other side of the country adds an 'R' when she says wash. Its 'warsh' to her.
I still have trouble understanding people in Boston.
Regional dialects and accents can be fun.

So to you it's a mounain or a moun'ain (glo''al stop)?

And don't get me started on the pronunciation oddities of folks from that large country north of Mexico. (Hint, I'm originally from the small country between Ireland and the North Sea. My accent has been well stirred by time there, 9 years north of Mexico, and several years in the north of France. I sound a bit like a Ch'ti when speaking French, I'm sure.)

There is, of course, the more general problem of bath versus bahth, tomahto versus tomayto, etc.

Re: Schizophrenic Haiku Comments and More

2012-01-16 11:18 • by neminem
371979 in reply to 371978
Steve The Cynic:
So to you it's a mounain or a moun'ain (glo''al stop)?

I'm from northern California, and it's a mounʔn to me, too.

By the way, I'm surprised nobody has bothered that guy who complains anytime someone posts an xkcd yet - you all missed the perfect opportunity to post a relevant one that I bet you has never been relevant to any previous tdwtf post. Much like Fahrzin's: xkcd.com/153

That said, akismet apparently dislikes xkcd, too; it thinks I'm spamming on his behalf. Wonder if more words would help?

answer: yes.

Re: Schizophrenic Haiku Comments and More

2012-01-16 11:20 • by Smitt-Tay (unregistered)
As previously stated: The Real WTF is using XML.

Re: Schizophrenic Haiku Comments and More

2012-01-16 11:22 • by QJo
That tmpnum one ... just looks like some interpolation is being done. Further info needed, but doesn't seem as WTFish as all that.

Re: Schizophrenic Haiku Comments and More

2012-01-16 11:37 • by This is not my real name (unregistered)
371982 in reply to 371974
¯\(°_o)/¯ I DUNNO LOL:

private static bool InvertBool(bool org)
{
bool returnValue = false;

if (org == true)
{
returnValue = false;
}
else if (!org == false)
{
returnValue = true;
}
else
{
returnValue = FileNotFound;
}

if(returnValue == false)
{
return false;
}
else
{
return true;
}

// Default
return FileNotFound;

}

Not fixed.


Fixed.

Re: Schizophrenic Haiku Comments and More

2012-01-16 11:41 • by PiisAWheeL
371983 in reply to 371977
anonymouser:
lesle:
Towards is one syllable to me, also. I'm U.S. Midwest, overlaid with North Florida/South Alabama. Stand your ground!


Ah, so you pronounce it as if it rhymes with cord.


I pronounce it more like "tword" so sorta...

Re: Schizophrenic Haiku Comments and More

2012-01-16 11:43 • by cappeca (unregistered)
The invertBool thing is the result of too many idiots enforcing OO rules that everything has to be a method, lest you have a procedural program.

Re: Schizophrenic Haiku Comments and More

2012-01-16 12:02 • by C-Octothorpe
371985 in reply to 371960
Bob:
The theory that a haiku contains 17 syllables and that there's anything special about this is singularly a geek meme.

That this is also considered a form or poetry demonstrates that most geeks should stick to what they're good at.

For future reference, things you might find in a good haiku:
. 17 morae
. a seasonal reference
. a juxtaposition separated with a "cut"

Fuck off Bob
And your retarded kid,
Take with you

(Yes, I know it's not haiku, but I could be arsed to write a correct one now)

Re: Schizophrenic Haiku Comments and More

2012-01-16 12:06 • by John (unregistered)
So...the replacement for the '!' operator includes the '!' in its code. WTF.

Captcha: wisi - What I see is.
I don't normally post captchas, but to give this a spin on Descartes: "I see, therefore you are."

Re: Schizophrenic Haiku Comments and More

2012-01-16 12:16 • by n_slash_a (unregistered)
371987 in reply to 371984
code:
tmpnum6 = tmpnum2 + tmpnum * (tmpnum4 - tmpnum2);
tmpnum7 = tmpnum3 + tmpnum * (tmpnum5 - tmpnum3);
tmpnum8 = tmpnum6 + tmpnum1 * (tmpnum7 - tmpnum6);

TRWTF is using 'tmp' instead of 'temp' to denote a temporary variable

Re: Schizophrenic Haiku Comments and More

2012-01-16 12:29 • by Boog, I Am Your Father! (aka Behold The Return Of Zunesis!)! (unregistered)
371988 in reply to 371985
C-Octothorpe:
Bob:
The theory that a haiku contains 17 syllables and that there's anything special about this is singularly a geek meme.

That this is also considered a form or poetry demonstrates that most geeks should stick to what they're good at.

For future reference, things you might find in a good haiku:
. 17 morae
. a seasonal reference
. a juxtaposition separated with a "cut"

Fuck off Bob
And your retarded kid,
Take with you

(Yes, I know it's not haiku, but I could be arsed to write a correct one now)
Fuck off Bob and son
Skull fuck his retarded face
Among falling leaves

(I'm getting there, much better than my limerick)

Re: Schizophrenic Haiku Comments and More

2012-01-16 12:45 • by Scott (unregistered)

tmpnum6 = tmpnum2 + tmpnum * (tmpnum4 - tmpnum2);
tmpnum7 = tmpnum3 + tmpnum * (tmpnum5 - tmpnum3);
tmpnum8 = tmpnum6 + tmpnum1 * (tmpnum7 - tmpnum6);


While the variables could certainly be named better, to me this looks like someone is trying to position something some percent of the way in a range. tmpnum's 4, 5, and 7 are the lower bounds of the range and 2, 3, and 6 are the upper bounds. tmpnum and tmpnum1 are the percentages.

Of course, variables like 'left', 'right', and 'percent' might have been helpful.

Re: Schizophrenic Haiku Comments and More

2012-01-16 12:56 • by Scott_Babu (unregistered)
tmpnum6 = tmpnum2 + tmpnum * (tmpnum4 - tmpnum2);
tmpnum7 = tmpnum3 + tmpnum * (tmpnum5 - tmpnum3);
tmpnum8 = tmpnum6 + tmpnum1 * (tmpnum7 - tmpnum6);

Its part of a drum machine
chang1 chang2
tata0 tata1

feel the beat

Re: Schizophrenic Haiku Comments and More

2012-01-16 12:56 • by Charleh
Why all this bother
About temp variables
Just shut the f*ck up

Re: Schizophrenic Haiku Comments and More

2012-01-16 12:58 • by too_many_usernames
371993 in reply to 371949
Code:
tmpnum6 = tmpnum2 + tmpnum * (tmpnum4 - tmpnum2);

tmpnum7 = tmpnum3 + tmpnum * (tmpnum5 - tmpnum3);
tmpnum8 = tmpnum6 + tmpnum1 * (tmpnum7 - tmpnum6);

Looks kind of like some signal filtering code.

Oh, or:
Scott:


While the variables could certainly be named better, to me this looks like someone is trying to position something some percent of the way in a range. tmpnum's 4, 5, and 7 are the lower bounds of the range and 2, 3, and 6 are the upper bounds. tmpnum and tmpnum1 are the percentages.

Of course, variables like 'left', 'right', and 'percent' might have been helpful.


Yes, this could be part of a 2-axis lookup. Incidentally, the math is the same in both cases.

I wonder what other problems fit this code?

Re: Schizophrenic Haiku Comments and More

2012-01-16 13:08 • by sisenuZ toN (unregistered)
371994 in reply to 371982

private static bool InvertBoog(bool a$$)
{
bool returnValue = false;

if (!a$$)
{
// a$$NotFound
returnValue = false;
}
if (a$$)
{
returnValue = true;
}

return returnValue;
}

Re: Schizophrenic Haiku Comments and More

2012-01-16 13:18 • by ooblek
371995 in reply to 371958
does not matter:
The JUnit test case makes sense, at least a bit.
If you start a JUnit test class without any test, it fails with an exception. But if you want to have a super class for your tests, it usually does not contain any tests, and JUnit will accuse this.
Solution: Just implement such a non-sense test and be fine.


It actually may be a Canary test. It is an odd way of doing it (not naming it Canary test), but could serve the same purpose.

Google TDD Canary tests...

Re: Schizophrenic Haiku Comments and More

2012-01-16 13:23 • by Nagesh-saki (unregistered)
TRWTF is that someone considers Haiku so amazing as a poetic art form that we all know what it is.

Re: Schizophrenic Haiku Comments and More

2012-01-16 13:33 • by valetudo (unregistered)
371997 in reply to 371985
C-Octothorpe:
Bob:
The theory that a haiku contains 17 syllables and that there's anything special about this is singularly a geek meme.

That this is also considered a form or poetry demonstrates that most geeks should stick to what they're good at.

For future reference, things you might find in a good haiku:
. 17 morae
. a seasonal reference
. a juxtaposition separated with a "cut"

Fuck off Bob
And your retarded kid,
Take with you

(Yes, I know it's not haiku, but I could be arsed to write a correct one now)


The lack of a comma on the first line disturbs me.

Re: Schizophrenic Haiku Comments and More

2012-01-16 13:58 • by C-Octothorpe
371998 in reply to 371997
valetudo:
C-Octothorpe:
Bob:
The theory that a haiku contains 17 syllables and that there's anything special about this is singularly a geek meme.

That this is also considered a form or poetry demonstrates that most geeks should stick to what they're good at.

For future reference, things you might find in a good haiku:
. 17 morae
. a seasonal reference
. a juxtaposition separated with a "cut"

Fuck off Bob
And your retarded kid,
Take with you

(Yes, I know it's not haiku, but I could be arsed to write a correct one now)


The lack of a comma on the first line disturbs me.
Proofreading?! We don't need no stinkin' proofreading!!

Re: Schizophrenic Haiku Comments and More

2012-01-16 14:14 • by Fred (unregistered)
371999 in reply to 371959
moz:
Should let you all know
That Haiku-style comments suck
I'm doing it too

Re: Schizophrenic Haiku Comments and More

2012-01-16 14:17 • by efs (unregistered)
372000 in reply to 371977
anonymouser:
lesle:
Towards is one syllable to me, also. I'm U.S. Midwest, overlaid with North Florida/South Alabama. Stand your ground!


Ah, so you pronounce it as if it rhymes with cord.
Then use poetic grammars...."T'ward"

Re: Schizophrenic Haiku Comments and More

2012-01-16 14:20 • by JJ what J (unregistered)
372001 in reply to 371981
QJo:
That tmpnum one ... just looks like some interpolation is being done. Further info needed, but doesn't seem as WTFish as all that.
You suck. USing that many temporary variables with stupid names and no comment to explain is always a FAIL
« PrevPage 1 | Page 2 | Page 3Next »

Add Comment