|
Well I am sure a designer would read that as...
if a is looking at b while on the other side of the bushes b is entering a from behind
do something
else
do something else
ALTERNATIVELY
The designer knows not how to apply multi lines commenting?
I may or may not be responsible for my own actions
|
|
|
|
|
Yes, that is truly an impeccable bit of logic.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
No this is just a more esoteric way of commenting out code.
//do something is the stuff being commented out and
//do something else is now being done instead.
I think this is obvious, isn't it?
Cheers!
|
|
|
|
|
I dont believe your designer wanted it that way, but a comparison to a NAN is always false.
I am using a similar NAN-Check
if (x != x) ...
gets true if x is NAN
|
|
|
|
|
if(x.isNaN()) (Java)
if(double.IsNaN(x)) (C#)
modified on Wednesday, May 4, 2011 1:53 PM
|
|
|
|
|
|
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.
|
|
|
|