|
|
the unequality test is more portable
i actually used it in CUDA, afterwards i found out there exists an isnan(x) builtin function
now porting to other languages is more easy
|
|
|
|
|
Then surely one will want to do:
if(a > b && a <= b && a != b && !isNaN(a + b)) { }
|
|
|
|
|
I think I just threw up a little in my mouth.
|
|
|
|
|
laugh all you wish, but that's not to far fetched from something some of the tiddlywinks I had classes with would do. Might be why I have a job and they don't but, that's another issue...
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
//do something else; like working as an accountant maybe!
"You get that on the big jobs."
|
|
|
|
|
LOL, that's fantastic.
Designers are like women, you can't understand!
|
|
|
|
|
This a standard design pattern (SDP) used by Governments, NATO, UN etc in deciding when to take action when civilians are being killed or persecuted
"No matter what - don't doing anything"
Clearly the designer is very well read and is destined for great things.
Note:
The design pattern is also used in banking to calculate if the bonus should be
a. Very large
or
b. Just embarrassingly large.
Athough it has to be admitted the design pattern is somewhat flawed as no banker has ever been embarrassed!
|
|
|
|
|
Should we assume that it wasn't done intentionally as a temporary bypass?
|
|
|
|
|
Doesn't apply to Javascript, but in languages that allow separately overloaded operators, this could have a (nefarious) significance.
|
|
|
|
|
and thats why they can't (designers(can't code)).
Excuse the pun.
"Program testing can be used to show the presence of bugs, but never to show their absence."
<< please vote!! >>
modified on Tuesday, May 10, 2011 4:14 AM
|
|
|
|
|
I was to assist repair a computer.
I went comfotable assuming it was a small issue.
I found on the users machine destop full of files my attitude began changing.
I asked the problem and told that the computer has to be restarted to work,
I checked, on moving the mouse the computer hangs and nothing could be done
then i restarted it, i realised that the computer was fully loaded with virus.
I tried installing antivirus, no .exe could open then i vomitted
I only read newbie introductory dummy books.
|
|
|
|
|
Sorry for asking... but what's your point...
(yes|no|maybe)*
|
|
|
|
|
Remove your 5 fingers from your throat. The vomitting should cease.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
That's highly interesting.
I won’t not use no double negatives.
|
|
|
|
|
|
So, you went to repair a computer and you found a problem with it? My god, man, you must report this to every law enforcement agency that will listen!
|
|
|
|
|
Isn't it great how wonderful you feel after you puke?
Don't push the rush.
|
|
|
|
|
the relief that its over, the relief of the pressure inside and the knowledge that you now have room for another bacon burger...oh yeah
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
gavindon wrote: room for another bacon burger
Over the weekend, I had a burger covered with chopped pork, topped with bacon. It was pig-tastic. There is always room for another bacon burger.
|
|
|
|
|
no bbq sauce on it? for shame
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
Actually, there was BBQ sauce, as well as a bun and a leaf of lettuce, but I didn't mention that because it seemed like a given.
|
|
|
|
|
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
My wife has a secret recipe for Hawaiian Pineapple Burgers. The patty has a round slice of pineapple placed on top of it and partially squeezed into the patty. It is then wrapped completely around in an X pattern with two slices of bacon. The patties are then placed in a 'special' marinade for about 12 to 14 hours. And then you cook them. You can then garnish the burger with anything you like, 'cause as you know, anything goes with bacon. These burgers are the moistest I've ever eaten.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
I'm trying to decipher the inner workings of ShadowBox (a lightbox variant), and I found this (except when I found it, it was all on one line of code:
return (aW == null) ? a0 === "!=" : a0 === "="
? a2 === aX : a0 === "*="
? a2.indexOf(aX) >= 0 : a0 === "~="
? (" " + a2 + " ").indexOf(aX) >= 0 : !aX
? a2 && aW !== false : a0 === "!="
? a2 !== aX : a0 === "^="
? a2.indexOf(aX) === 0 : a0 === "$="
? a2.substr(a2.length - aX.length) === aX : a0 === "|="
? a2 === aX || a2.substr(0, aX.length + 1) === aX + "-" : false;
Before anyone else mentions it, I *know* what a ternary comparison is and I use them all the time (and was doing so before many of you were even born), but I don't nest them like this. THAT is the shameful nature of the code. So, please stop trying to educate me as to the ways of the force.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
modified on Thursday, April 28, 2011 3:50 PM
|
|
|
|