- 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
param = ""; if(comment.count == Comments.FRIST) { param = "&1st&"; }
if(param == "&1st&") { return Comments.FRIST; }
Admin
All this deserves is a flat "what.", but I can't just put that in a comment because Akismet doesn't like it.
Admin
This might seem over-engineered but how else could you implement an "error" case of white at one stage and purple at another....
Admin
Well, so much for trying to understand the "logic" behind the "color string"…
Anyway, I, for one, would like to formally and wholeheartedly congratulate snoofle for his first article as a TDWTF writer.
Admin
This was written in the early nineties but the code is in SVN???
OK maybe you meant nineteen-nineties but still...
Admin
OMG snoofle???
{bows respectfully}
OK guys enough of that. Time to start ripping him apart.
Admin
Admin
The thought of that code just made me turn #1AC898
Admin
Call me Mister Slowcoach, but is it not the case that 65535 and FFFF return different colours? I'm also a little confused at the -2147483633 and &H80000005 and &H8000000F ...
Admin
What, purple?
Admin
Considering that I spend more time searching the Side Bar for snoofle stories than reading the Feature Articles, I'd say the debut was long overdue.
Admin
Did I miss something or is the color just in BGR format with leading zeroes? So "FF" is parsed as hex 0x000000FF and so is (1,0,0) in the 0..1 RGB color space. "FF00" is 0x0000FF00 and so is (0,1,0): green (or "lime"). Orange then seems to be high red, medium-high green, and high blue, which makes sense.
Admittedly, there are still a few WTFs in there. The dark vs. light grey values seem to have been reversed. It also seems that "8000000F" is treated as light grey, although I'm guessing the value is in aBGR format and the "80" refers to transparency (which we're going to quietly call grey 'cause argh).
Then again: if this is how the color management works, I can't wait to see the widget layout system.
Admin
(I meant to say that orange includes a medium blue component. Whoops.)
Admin
Admin
I'll give you a hint. Those values aren't hex or ints.
Admin
Under either RGB or BGR that doesn't look even slightly purple.
Do you operate in RBG or BRG?
Admin
I like that the thin client code is VB while the server is C#. I don't know the reason behind it. Maybe the company switched to C# and the thin client survived in VB, or maybe they use the different languages to really let the programmers know which side they are coding for. Either way, I still find it amusing.
Admin
I'm puzzled by what distinction you're trying to draw by introducing the nineteen- prefix. If someone says nineties to you, what year, decade or time period do you assume, if it's not the nineteen-nineties?
Admin
Admin
Admin
Well, how can people just assume that? I mean, why don't they just get off their lazy butts and say "1990s"? I mean, I don't know shinola about the stupid 1990's. Dumb stupid era
What is wrong with people? How can they be so sloppy? I mean, why don't we just throw out the damn, stupid calendar If no one's going to use it? I mean geez, a bunch of ninies and feebs. Morons, morons, all of you, man!
//How can I let that comment pass without a MST3K reference?
Admin
I'm interested in this answer as well
Admin
Admin
Admin
"The fuck?" is all I could muster at this one.
Maybe at some point it did translate to a proper color and that was factored out when a stupid intern tried to "fix" something he didn't understand?
Admin
Groan. Here we go again... It's exactly that kind of thinking that created the Y2K mess. Please think of the poor slobs wasting time by trolling dailyWTF archives in 2099 and fully qualify your dates, people!
Admin
This.
If this was written in the early 90's, the clients probably couldn't even display more than 256 colors, and maybe less depending on how new the hardware was at the time. It's hard to imagine the original program used 24bit values for color.
Admin
Leave Mr. Gloop alone. Even on a good day, he's #A2C8BF
Admin
Admin
i fail to see a viable case for the term "90s" referring to any decade other than the one spanning AD 90 to AD 99, at least by default. any other interpretation would be unnecessarily arbitrary and unintuitive. of course, prefacing all comments with a set of default assumptions, in xml format for human readability, would clear up these kinds of misunderstandings and allow greater flexibility in the long run.
Admin
I don't see a WTF; I see evolution of the client code.
Considering that Industrial devices without a file system in the 1990s, followed some strange standards. Looking back you may find that the codes directly set both color and some other attribute, like blink. There may even be another function that takes the color codes and sets this attribute. If the original developer discovered the color object and fixed the code on the devices; it would require all the deployed server code to be updated to eliminate the color codes.
Admin
And for those poor slobs in 2099, we probably ought to specify Earth calendar, unadjusted for relativistic effects, just to be sure.
Admin
In that case the translation makes sort of sense, as the values are not colors, and need to be converted.
Admin
Is part of the WTF that they continue to use '"Industrial" handheld devices' for the client that are now* approximately 20 years** old?
Admin
The One True Date Format for today is 2013-01-08.
Admin
Nurse!
Have you seen my cane?
Admin
Case "65535" Return Color.Orange 'bright yellow
"Ah, now I get it".
Admin
Admin
Admin
Admin
Seconds are well-defined (caesium-133 hyperfine transitions IIRC), so really one just needs to count the number of seconds since the beginning of time (1970-01-01 01:00:00 British Standard Time).
Sadly POSIX gets this almost-but-not-quite correct; it screws up royally wrt leap seconds.
Admin
No, he started at 1 because that was the accepted style of counting years. Dates were frequently cited as (e.g.) "... the first year of the reign of King Xyzzy ...". So the first year after the birth of Jesus would naturally be labelled year 1.
Admin
And the British don't use BST in the middle of January, even if it is sometimes hard to tell British summer and winter apart.
Admin
We're going to party like it's AD 99. But the developer of this WTF isn't invited.
Admin
(And from past experience with the Slush Puppy dispensers at Snappy Mart in Silver City, New Mexico, "Blue" should actually be "Coconut".)
Admin
....in what frame of reference? As soon as you have motion, you lose any hope of a universal, non-arbitrary time standard.
Admin
....in what frame of reference? As soon as you have motion, you lose any hope of a universal, non-arbitrary time standard.
[Sorry -- forgot to quote!]
Admin
Aaand I quoted the wrong one. You people add posts too fast! ;)
Anyway, this is what the following comment was supposed to be referencing, heavy apologies for reposting again:
....in what frame of reference? As soon as you have motion, you lose any hope of a universal, non-arbitrary time standard.
Admin
This. (and why I wish I could just +1 your comment)
Admin
In ninety-two, Columbus sailed the ocean blue...