- 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
NOW the real WTF is VBA.
Admin
Admin
Modifying the Date variable isn't THAT strange. It seems akin to changing an environment variable in your code and wondering why something isn't working right.
This burned us not to long ago, we had some code using putenv that was modifying an environment variable and not taking into account who else might need it. But the code never made it past unit testing.
Admin
Like many people on this board I correctly guess it was a format issue. As a developer I, like probably Moe, was rather mystified as to why a report which should only read the date could change it.
The TRWFT here is letting users run as Administrator, had it not been for that the problem would have been apparent right off, well unless it was all wraped in On Error Resume Next anyway.
The next issue being that ' format the date Date = month & "/" & day & "/" & year
really is setting the date, which is interesting because month,day,and year must be getting pulled from some source that matches the system. It can't be necessary. What the developer should have in that page header macro was probably just, Today() or now().
Admin
Admin
Except for Americans.
ISO formats anyone? SI units? Or better lose Mars probes.
Admin
ISO 8601. Not Brüssel. None of the formats you mentioned.
Admin
Surprised that no Dutch person responded yet. In the Netherlands we don't use ordinal numbers for dates, so it is just 'vijf juli' (five July). I think in French it is the same.
(Preferring yyyymmdd though.)
Admin
Yeah. That really was pretty obvious from the moment it said "month and day swapped sometimes", that it was a localization issue. And I'm also an American, lived here all my life. I haven't even done that much work on localization, but you pick stuff up just working as a programmer around anyone who's ever done any localization or localization testing. Which, clearly, nobody there ever had.
That said, I do believe this would also be one of the rare times when "trwtf is VB" is actually entirely applicable. Or, VBA, anyway.
EDIT: Also, while I might not say "5th July", as that would imply that it's the 5th July in a sequence of Julys, I would say "the 5th of July". You know, like the name of the holiday we just got off, "the 4th of July"?
Admin
As a US developer (admittedly, one who has been overseas) I spotted it immediately. Finding it could still be hard, though.
Admin
Easily as it made no difference as in a lot of standards especially ISO are adoptions of other standards. In this case it was the adoption of the standard as created by the banana wholesalers and the buying specs for supermarkets and other food distribution.
So that standard codified what was in existence for about 20 years before that.
Admin
Well, vive la difference! It'd be boring if there were no quibbles and eccentricities that seperated us, if everyone used one system for measuring units, represented the date the same way, and insisted on using the exact same definition of a lb or a pint.
There'd be no differences to celebrate, no issue of localisation for developers, and no excuses for why multi-billion dollar spacecraft crash.
Admin
The bug they described-their computer's internal date was randomly changing-reeked of user error...
And on that day, Alex learned the difference between hyphens and em dashes.
Admin
In summary:
Admin
Next time you bash Belgium, please study it first. Thanks.
PS. This does not make me a "Belgium fanboy". It does make me a Belgian, though.
Admin
Zoom, and enhance, and zoom, and enhance. What did you expect, Horatio Caine to put his sunglasses on and give a witty one-liner?
Admin
I'm sure some do, but in the US it's really rare. In fact, I hear it said that way so rarely, that saying it that way sounds really weird.
That said, the fact that we refer to Independence Day as the fourth of July indicates that it used to be the norm to say the day first. Which makes sense, since at the time that the fourth of July became a meaningful date, most people would have still been used to doing things the British way. So, just saying that it's because of how we say the dates, isn't really an answer. Why do we say the dates that way?
My best guess is that during the Revolutionary War, people were trying to be "less British" in as many ways as possible, so changed even little things like the way they write/say dates.
Admin
It's a burden, being the only ones doing things correctly. But we manage to bear it...
Admin
TRWTF is that the French employees were running windows in administrator mode, right?
I mean, you can't even open the clock on a properly locked down system!
Admin
+1 This (I do it all the time)
Admin
Admin
I'd guessed the punchline by the fourth sentence.
TRWTF is that date function...
Admin
Julian date formats are the way to go...no need in confusing things with a month at all...simply a year and a day: yyyyjjj
Admin
Holy shit. Another guy named Bort who was thinking exactly what I was thinking.
Admin
And just what is wrong with paper tape?
Admin
Well, I'd say twenty-eleven, but other than that, yes :)
(Try saying 1984 out that loud your way round, it sounds utterly silly and wrong.)
Admin
I'm so sorry I'm not familiar with the intricacies of YOUR system and how it's different from the 20 other similar systems that neighbor you.
Admin
Here in The Netherlands we swap, when speaking, some of the digits in the value. Like 21 becomes een-en-twintig (one-and-twenty). If the value has 4 digits we often pronounce it as a number of hundreds. This means that something like 2345 becomes drie-en-twintig honderd, vijf-en-veertig (three-and-twenty hundreds, five-and-fourty).
I would just love to see that expressed in computer-programming (most, but not all pairs of digits swapped). It would make a language as white-space an easy one to decipher. :-)
Oh, by the way: wasn't yesterday "the fourth of july" for you guys ? :-p
Admin
There is only One True Date Format and that is x, where x is the number of seconds since Jan 1, 1970.
epoch FTW.
Admin
That's interesting, most people in the UK would say two thousand and eleven. How would you say the year 2000, twenty-hundred?
Admin
Admin
"Most common usage See also: Category:Date and time representation by country [edit] Date See also: Date format by country
In terms of dates, most countries use the "day month year" format. In terms of people the big-endian form is also very common, since that is used in East Asia, Iran and partially in India."
http://en.wikipedia.org/wiki/Date_format_by_country
Medium Indian is roughly use , in ... The USA only.
So that's about the same as with USI.
Admin
Why didn't the french realize this, then? They may not be developers, but none of the people involved even had an inkling? They never mentioned it.
Admin
Dates (and everything else) should be in order from most general to least. That makes the ISO format superior, and dd/mm/yy one of the worst. The only thing worse than dd/mm/yy is anything with the year in the middle.
Admin
(mid size)(small size) (big size)... That reminds me of the hourglass figure metaphor for women... :-)
Admin
"Le vrai quoi le foutre" maybe?
Admin
You're misunderstanding the pattern, the pattern is what way is shortest.
We'd say it "Two-thou-sand" because it has fewer syllables than "Twen-ty-hund-red".
And we say "Twen-ty-ele-ven" because it has fewer syllables than "Two-thou-sand-and-ele-ven".
When it comes to informal language, I think this shortest-way pattern is acceptable. You just used a contraction. Are you going to start throwing apostrophe's everywhere.
Admin
In this thread, a bunch of Americans and a bunch of Europeans hate each other in the least confrontational way they possibly can (regional date standards).
Kudos to the anyone who realises that you can get intelligent, capable people on both sides of the Atlantic. And idiots. Both sides have lots of idiots.
I propse, instead of this silly patriotism, that instead we all agree that developers are awesome, and everyone else is foolish.
Yeah, that'll work.
Admin
What's "Medium Indian"?
Admin
After hitting similar mm/dd vs dd/mm problems 10 years ago, I now ALWAYS use ISO-8601. My problem is to persuade the rest of the world to do it too. It saves such a lot of problems.
Admin
You have a good evening too! Between the odd time zone, summer time, and the latitude, the sun is still up at 10 PM in Paris right now. After all, you are in the same time zone as Lisbon (Portugal) and Stockholm (Sweden).
b.t.w. I only know maybe 100 words of French, but I can hear the difference between metropolitan French and the Quebecois accent -- those Canadians are REALLY hard to understand.
Admin
Probably more accurately gramatically: Le vrai qu'est-ce que tu fous." Any native francophones care to help out?
Admin
Don't worry, it will all be over soon, when North America is populated mostly by latinos and Europe is the new Caliphate.
How do civilizations (like The West) die? By slowly rotting from within.
Admin
The Belgian bureaucrats aren't that bad. After all, they let me in without forcing me through long, messy and humilating process of visa issuing-or-not. In fact, they don't even require a passport.
And thanks to Belgian bureaucrats, we are free from software patents, which cripple the individuals and reinforce the large corporations.
And do you really think your life is not regulated? I doubt.
Admin
Hmm.. that rules out AZERTY as the layout i wanna try next. I am happy i tried out the DVORAK, but am beginning to think it can be improved. has anybody seen this(http://patorjk.com/keyboard-layout-analyzer/)??
Admin
Admin
What ever happened to celebrating diversity?
Admin
Well, sure, the date reversal is rather obvious. But a report shouldn't be setting the system date. TRWTF is VB - allowing a function name to be a variable and allowing the function name to set a system setting. It's like Microsoft was trying to make things too easy for users.
("I know, every student is going to want to set their system date when learning VB. Let's make this easy for them!")
Admin
What makes you think Americans should conform to the way you do things? Are you really so arrogant that you can't tolerate any other way of doing things other than your own? Every time I see some arrogant pos like this I thank god my ancestors left the "old" country.
Admin
That's some pretty awful troubleshooting on the part of the dev team. If they don't have the thought process to ask themselves 'Is this somehow viable given the language?' I'd be surprised if they ever fixed anything at all.
(Sure it's a stupid language feature, but the first thing you learn when working with M$ languages is that they've never heard of the principal of least astonishment.)