- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
how i frist?
this head injury is a problem...
Admin
ITS! ITS! ITS!
My God, is it so hard to get this right?! Meh. ;-)
Admin
Not two days in yet, and we already get WTFs featuring Android Studio... nice
Admin
Can we please stop submitting very high / negative / NaN numbers on progress bars? I have now seen enough examples of those and they stop being funny.
Thank you all.
Admin
As a general rule, I would agree... But come on... This one was a massive time in a product called "Time Machine" - see the funny side of it now?
Admin
Having NaN credits/cash is good since infinity by definition is not a number. Or very bad since negative infinity too is not a number.
Admin
FTFY.
Admin
It's.
Admin
+1
Admin
Tits.
Admin
I would swear we've seen a lot of Time Machine in Error'd.
FUCK
Admin
So, you're calling a time-out on Time machine?
Nice it's, by the way.
Admin
So a First Class ticket costs [pinky finger] ONE MEEELLION POUNDS? Guess I'm going to have to hold the world to ransom to get that.
Admin
TRWTF: "Cochlear's implant". It's "cochlear implant", as in "a device implanted into the cochlea", which is a part of the inner ear.
Admin
UK train tickets are almost that expensive though, so I don't see the WTF.
Admin
TRWTF is using the same thing for your username and password on an online banking site.
Admin
If that 1st class upgrade is displaying an integer overflow, it might be unexpectedly cheaper than normal ticket - perhaps more worthwhile investigating than it at first seems?
Admin
Their website indicates that their "home installation kit" comes with rubber mallet and an "installation spike," so there's your head injury right there.
Admin
It depends on how they coded it. If they allowed you to take out 100 points as cash, for example, this would be bad (no cash) // numPoints == NaN if (numPoints - 100.0 > 0.0) { if (dispenseCash(100.0) numPoints -= 100.0; }
this would be good (infinite cash) if (! (numPoints - 100.0 < 0.0)) { if (dispenseCash(100.0) numPoints -= 100.0; }
Admin
So this basically means I can bruteforce the ATM PIN by trying to change the online password?
Admin
While we are at it, we can stop submitting horrible manager stories, we can stop submitting horrible coder that wants to avoid all useful tools like source control, we can stop submitting horrible code bits that show using a switch to build a table that associates a string with an int because the programmer doesn't know about parse and format methods, and we can stop submitting the horrible manager that doesn't want to look stupid after hiring their third cousin's son to do something and then fires the good programmer. I mean, how many variations can we hear before we get it, life sucks because people are stupid.
Admin
Admin
Admin
Admin
Admin
Admin
Admin
We need more articles about how (American) English is the language that everyone should be programming in.
Admin
IT'S apparently that hard.
Admin
TRWTF: Using your username as your password.
Admin
Sure hope you're not coding for my company. NaN != Inf in any language I know.
Admin
So, clearly, the WTF is that the error message is showing even though his password succeeded. Not the other way around.
**The more I read the comments, frequenting this site is not necessarily evidence of intelligence.
Admin
Sure hope you're not coding for my company. NaN shouldn't be used as a reference value in any language I know.
Admin
Yeah, I hate the pattern of placing all possible messages on the front end, and then showing/hiding certain ones based on (often, a lack of) logic.
Admin
As your list covers about 90% of what's on this site, if you aren't interested in hearing this sort of thing, why don't you just stop visiting this site?
Do you also go to Weight Watcher's web site and complain because all they talk about is dieting? Or to a political party's web site and complain that all they talk about is politics?
Admin
Yeah, well, what would you do when some rookie divided zero credits by zero cash? Returning Inf is a hell of a lot worse than returning NaN, which is in fact a valid description of the result of the calculation (even if the calculation was not well-designed).
Admin
Use the isNaN() method.
Admin
All of this goes back to what is the "original sin" WTF. That sin is using floating point numbers where they shouldn't be used AT ALL. If you use floating point numbers for silly things like money or points in the hope that you will have a larger range of things to deal with, you are sadly mistaken in this belief. Current single precision floating point numbers (IEEE type) have only 24 bits of precision, and not all of that is used. Some number codings are used to express silly things like 'NaNs' and 'Undefineds' which further limits their usefulness.
The example given (Points as Nans) just shows this ignorance. One should use proper things for money (integers) and go from there. It would also show that integers don't have things like 'undef', or 'Nan' in their lexicon, so people wouldn't deal with them.
No, using higher precision floating point numbers is even worse. You start adding up decimal fractions and you get ever increasing round-off errors, since decimal fractions CANNOT be expressed accurately in binary form.
These errors are disasters in the waiting, and all of them will eventually show up here to be ridiculed by all (as it should be!).
We now return you to the regularly scheduled program of comments.
Admin
TRWTF is a company naming themselves Cochlear so people think "Cochlear implant" is a brand name.
Admin
Admin
To nitpick (because it brings me joy), you can express some decimal fractions perfectly accurately in binary.
Admin
Thirty-two point three three three repeating, of course.
Admin
"life sucks because people are stupid" is the ultimate answer to everything.
+100
Admin
TRWTF is that anyone even thinks that Time Machine snapshot is WTF worthy.
You only ever see that window when you're doing a first backup. You never, ever see it otherwise. When TM initially begins the first backup, there's a bazillion little files that basically take up no space but take a long time to copy because they've never been copied over to the backup before. Usually this takes about 2-3 minutes, then your transfer rate rockets up to a reasonable number. 175GB would probably be about 6 hours on WiFi (802.11n).
I'm not sure why you guys think anything like that is "WTF worthy". It's not. It's lame. Everything is working as intended. If that makes you go WTF, then I have to WTF at your WTF reaction.
Admin
(1000000 - 999951.70)= 48.30 The upgrade is the same fare, but deducted from one million.
Admin
"a bazillion little files that basically take up no space" aha, there's your WTF.
Admin
For example you could have a minimum password length, which is larger than the maximum PIN code length. Or you could require that the password is not only digits.
Admin
Without going to far on a tangent there are many other ramifications to using floating point number...I guess they are co-sin's...
<ducking and running>Admin
The upgrade cost is correct - one million is about right to refurbish an entire carriage to actually have first class.
Admin
WTF?