For you folks who write code for a living, check out The Daily WTF.  For you non-developers, move along...  there's nothing to see here.  You wouldn't understand why this is so damn hilarious:

//return whether a double is negative
bool IsNegative(double n)
{
  string nStr = n.ToString();
  if (nstr.IndexOf('-', 0, 1)) return true;
  return false;
}


Oh lordy, I nearly wet myself reading that.  <geek />
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting
.

Profile

lokheed: (Default)
lokheed

Most Popular Tags

Powered by Dreamwidth Studios

Style Credit

Expand Cut Tags

No cut tags