- 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
What an idiot. Anyone who's been to the Merrye Olde Englande knows you can't have fireworks when it's always raining.
Admin
Nah, it's VB. BASIC had a fairly straightforward design: everything was a statement. Statements were control, assignment, or input/output.
Newer BASICs took out the LET keyword, so now you had assignments, control statements and IO statements.
VB then decides that some system calls will be done via an assignment, completely breaking the model. Ergo, TRWTF is VB, since even BASIC with its obsolescence got it right.
Admin
nah, us Brits are far more gung-ho than that. We deliberately hold our fireworks night right in the middle of the rainy season (5th November, so as to celebrate the almost-success of one of our more popular anarchists who spectacularly failed in his attempt to blow up the Houses of Parliament - the UK equivalent of the White House - because his gunpowder was damp). We have learned from those days to make our fireworks superior to those of most other nations by making them waterproof.
Till you've been to a proper Bonfire Night party in Britain you haven't lived. The birthrate rockets (no pun intended) around the beginning of August.
Admin
Where I come from we use this format:
yyy-ddd-q-w-YYY-g-ddd-ll-7
yyy -> last three digits of the year ddd -> abbreviation of the day of the week q -> current quarter w -> day of the week YYY -> the first three digits of the year g -> current incarnation of ganash ddd -> the day again, in case you forgot it ll -> the number of days lindsay lohan has not appeared in court, so far two digits have been sufficient 7 -> 7 goes here, forgot why, but everyone does it
Admin
I'm okay with all of this except "w". Which day does the week start? Sunday or Monday? Or Wednesday? Or what? (Can't remember which d.o.w is sacred to Ganesh.)
Admin
"...you haven't lived..." Yes, I'm sure everything you have is better than everything everyone else has.
Admin
When I went to visit an old cemetery here in Finland, I noticed that the OTDF is actually "YY dd/mm YY" where the numbers for the year are actually much larger than the others. On even older gravestones the day and month are on top of each other and the month is expressed in Roman numerals.
I would like to see some software that would support that beautiful style.
Admin
TRWTF is working with formatted dates.... Use a goddamn time-stamp and do the formatting (and DST, timezones etc.) only when presenting a date to the user. Geez...
Admin
Admin
But of course. We rule the world, always did, always will.
Admin
It's second-biggest benefit is that it's unambiguous for all pre-1980 dates as well as modern dates.
Admin
Admin
From his description, it sounds funky enough.
Admin
Admin
Eeeeee... Function parameters' order depending on the system locale? Is everybody sane there in VB land?
Admin
At least we're only partially backwards, not completely like DD-MM-YYYY. The only logical way is biggest to smallest: YYYY-MM-DD.
Admin
Admin
Admin
Admin
Admin
Admin
I (and other non-Americans) DO say 5th July. Bad assumption mate!
Admin
Actually, the Houses of Parliament are the UK equivalent of the Capitol. 10 Downing Street is the equivalent of the White House.
Admin
Damn you! You are right, nineteen hundred and oh-one does not fit the pattern (nineteen-hundred-and-oh-one makes no sense), but I would still say two-thousand-and-one. BTW, has anyone figured out what to call that decade yet? Or even this one?
Admin
5th of July.
What's wrong with you?
Admin
That should have read 'nineteen oh-one does not fit the pattern'
Admin
Admin
I don't get it.
Admin
Or at least that's the response I got when I challenged someone on this same question a few years ago.
Admin
That was the oughts. This is the teens.
Admin
The real WTF is that the date assignment line in question is a no-op on American systems. What kind of superstition made people add it in is beyond me. Also, if your users tell you that your software does X, and you don't know how to do X in the programming language / runtime you're using, look it up.
It sure beats AltGr+impossible to remember letter, or Alt+impossible to remember numerical code. Still, I prefer the US International layout to AZERTY.Bonus historical note: DATE$ = <value> was already present in GW-BASIC. In VB properties were introduced and the DATE$ function and DATE$ = statement were turned into the Date property, although VB4's help file still talks about the Date function and the Date statement. (These pages are cross-linked from the other date-time functions, so the developers have no excuse. In particular the Date function page, where they probably got their date in the first place, reads: To set the system date, use the Date statement. A notable doc flaw is that it isn't cross-linked from the Date data type, but judging from the code snippet, the developers didn't use it.)
Admin
The real WTF is that the bug report was described as "superstitious" and disbelieved. Because that's a pretty good and specific behavioral description and should've triggered alarm bells.
The other WTF is that the user had to insist on having someone observe it.
Admin
And while we are at it Stop priting on US letter format.
If I want to print a web page I dont want the left edge cut off
Admin
Admin
But it's highly likely, as others have mentioned, that the programmer didn't intend to be calling Date at all in this code - rather, he probably intended to use a local variable to store a formatted string. Multiple fails here still, including using a variable with the same name as an inbuilt function, (presumably) omitting the variable declaration, and not using the regional settings to format your date string.
Admin
"Actually, the Houses of Parliament are the UK equivalent of the Capitol. 10 Downing Street is the equivalent of the White House."
Wrong, sorry. The White House is the residence of the US head of state. In the UK the head of state is the queen, so the approximate equivalent of the White House would be Buckingham Palace.
Admin
'Hold up. The developer was able to confirm the problem, and then just shrugged and said "no apparent root cause" and went on his way? A bug like this is easy to track down -- attach the debugger remotely and use binary search to find out where the date change happens.'
Exactly. The REAL WTF is that the tech had a confirmed, reproducible issue, and instead of solving it (which would have involved shock actual diagnosis) fobbed the users off with a crappy workaround for over a year.
Sounds like a first level support drone who will never get to any other role (hopefully).
Admin
TRWTF is the We All Live In America attitude. Seriously, why would it take THREE YEARS to identify that it was an issue with the date format?
Admin
Admin
Interesting that for really "important" dates they go back to the British method.
Admin
And are probably functioning at least as well as the rest of us...
Admin
Last decade was generally referred to by the press in the UK as the "noughties". I suppose "teens" will do for this one.
Admin
So far we have:
Admin
... and failure to respond to the alarm bell (alluded to but not stated explicitly elsewhere) that the program would only run when the user was configured as "administrator".
Admin
Either YYMMDD or DDMMYY is logical, start with most significant value (year) or most precise value (day).
The American format with month first is due to their way of saying dates in spoken language, "October 5th, 2011".
Also, in computer situations you should always go for SQL standard, "YYYY-MM-DD hh:ii:ss" that will as far as I have seen work in any situation no matter what language you work with and it is unambiguous.
Admin
Step 1: Reproduce Bug by setting French localization on Test/Developer System (pretty obvious to most developers) Step 2: Reduce functionality until bug disappears Step 3: Isolate just removed functionality through separate test Step 4: Repeat Steps 2 and 3 until epiphany occurs
Shouldn't take that long...
Admin
I am, because that, at least, is numeric sortable.
TRWTF is ofcourse a function that takes values that are dependant on language settings, instead of taking either ISO/Epoch, or forcing to enter a date format.
Admin
Yeah. You know that "Special Relationship" they always talk about. They just don't want to admit the US is still a colony... ;-p
Also do you have any measurement unit that scales to another through a power of ten? I seriously cannot imagine how one can stay sane working with all those weird units...
Admin
Or confiscate one of the Frenchies PC's and start tracing.
Admin
The point is, since you're happy to sell your software to us, you should at least make an effort to conform to the standards that we're using, and some of those standards come from a time that you could count the number of US presidents on the fingers of one hand.
NOBODY outside the USA, Liberia and Burma/Myanmar uses imperial measurements, yet somehow office software think we use inches.
EVERYBODY with the exception of Japan, Canada, Mexico and the USA use the A-sizes for paper, yet somehow Windows used to think that we use Letter, Legal, etc. Even to this day I get documents, written by European users, that are in the Letter format, because that's what the paper size is set to.
Now, well a decade into the 21st century, we actually get the standards we use without having to set them manually, and admittedly, it's been like this for a while now.
But still, if I purchase a game from Steam, I have to fill in my state. Never mind that very few countries outside the USA use this. If you send a letter to someone in Cologne, do you have to specify that it is in North Rhine-Westphalia? Not bloody likely.
And even though Germany has states, the country I live in is a handful of islands in the middle of the Mediterranean. You can cross it in two hours, and that includes a ferry trip. Not surprisingly, there aren't any states, nor provinces, nor any other layer between the government and local councils (more or less like a county in the USA).
So no, I'm not being arrogant, I just don't want someone else's standards forced upon me. And that's not an unreasonable thing to ask.