- 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
Is TRWTF that the code for the popup text and the popup text don't match?
Admin
I tied to think of something witty, but all I could think was "Why?".
Admin
No. I was not here.
Admin
TRWTF is DialogBox(), and event-driven programming in the first place (Am I doing it right? Oh yeah, Frist!).
Admin
No, it's that, after realizing that their first guess was wrong, that it was replaced with a second guess.
Admin
MessageBoxEx allows you to put a timeout on the messagebox, yes?
After that time passes, zap and the default button is pressed.
Sorted.
Admin
I like it. The "No" button provides interraction for the sarcastic.
Admin
*** on feel the noize.
Addendum (2010-10-11 11:36): (That might not make sense outside of the UK...)
Admin
Why haven't they provided a 'File Not Found' button on the popup?
Admin
C# with Java-like naming conventions, yuck...
No it doesn't...Admin
I don't really see another option except for creating a non-modal dialog with built-in timeout since there is no easy way of doing this.
Right?
Admin
It would be handy if the .NET libraries included a timing out MessageBox as well as a "don't show this again" variant. They are not hard to implement yourself, but it can be a pain to get it look and behave exactly like the regular MessageBox (except for the timeout). Never understood why MessageBox is sealed.
Admin
No related, but it reminds me of the AmigaDOS command 'why'.
If you typed in a command and you got an error message, you could ask AmigaDOS why it failed. It was like an expression of desperation that you get when working with computers, although I don't believe the syntax 'Why? Why? WHY?!' was supported.
Admin
Slade's colleague ...
Great, now I've got visions of a development team staffed by members of a 1970's glam rock outfit.
http://en.wikipedia.org/wiki/Slade_%28band%29
Oh, and Akismet sucks donkey balls.
Admin
Dear sir,
I am writing to express that I do not wish to post a comment.
Thank you.
Admin
TRWTF is use of var.
Admin
I hate it when this happens. The first revision comes along and you think to yourself "maybe he's just a having a slow morning" or "the requirements could have been clearer". So you explain it again nice and slowly, make a few simplistic analogies and set them on their way again. Then the second revision comes around and it finally hits home; you're working with a dribbling simpleton. Talking slowly is not going to cut it - in fact, you may start to wonder if verbal communication is even a viable option.
I would be disappointed with the first revision, especially since the original coder seems to have no concept of proper thread handling (I have no doubt that While loop was on the main GUI thread - so say goodbye to message pumping, since he didn't bother to call Application.DoEvents()). But after the second revision I'd start packing up the desk - either his or mine, whatever it takes.
Admin
I never used it, but I read a review of an early version of Mathematica, and it apparently would beep if something went wrong, with no further explanation; you needed to go to a menu option (I think it was called "Why the beep?") to find out.
If some other application had beeped, it would smugly say "Mathematica hasn't beeped".
Admin
Admin
I got stuck on the 2 minutes part.
Admin
I tried posting a comment, but since it took longer than 2 minutes to type, it erased it anyway.
Admin
At least he was smart enough not to put the lastMouseActivity check after the dialog, which is what I expected he'd do.
But I suppose he's not done yet; there's always the next version.
Admin
What if the user is still at the computer but are done with the application? They could hit "No" to get rid of the prompt and go ahead and log them out.
If it only had a 'Yes' button, they could just ignore the prompt for 30 seconds, but if they are OCD like me, I'd have to hit yes, then log myself out manually so it didn't keep bugging me.
Admin
http://stackoverflow.com/questions/1946693/what-is-the-vb-net-equivalent-of-the-c-var-keyword
It bothers me that people keep using VB6 as a strawman to talk down VB.Net.
Admin
Maybe to make you all feel better, the prompt could say "You will be logged out in 30 seconds. | Logout Now | Stay Logged In |"
TRWTF is that the submitter needs to ask WHY the prompt was coded that way.
Admin
TRWTF is that "30 seconds" in the code somehow becomes "2 minutes" in the dialogue box.
This data's been tampered with!
Admin
No, TRWTF is that this wouldn't work on embedded systems because there is no room for a file system.
(BTW, where's the original story for this meme?)
Admin
You probably mean http://thedailywtf.com/Articles/What_Is_Truth_0x3f_.aspx
Admin
Fixed?
Seriously...why does this even need to be implemented when you can lock your terminal automatically via screensaver?
Admin
Admin
Admin
http://thedailywtf.com/Comments/Stoned!.aspx#319693 is the first mention to what would soon become another TDWTF meme. Incidentally, this is the one the OP was asking for.
Admin
Admin
The other day a friend of mine came into work and heard a very strange thrubbity-drumming sort of noise coming from one of the offices. He went to investigate, and found a desk fan, case removed, head-down in a plastic waste-paper bin, along with a mouse attached to a laptop on the desk next to it. Every time the fan rotated, it was smacking the shit out of the (optical) mouse and sending it ricocheting round the bucket, causing the noise. The laptop was displaying the end-screen from a full virus scan.
Turned out, on interrogation of the user responsible, that they wanted to run a full virus scan, but noticed that their laptop powered itself off if inactive for more than 20 minutes. Solution: make sure the mouse moves plenty.
The real WTF here is that the user's IT support contract is set up in such a way that having an IT tech change the power-saving settings would have 'cost' more than the new mouse that was required. Amazingly enough, the mouse still worked, but it was retired with full honours due to extensive scarring.
Admin
I don't think so. How is that related to embedded systems?
Admin
-1 for reading comprehension
"This was an important feature, as the application was responsible for divvying up time-sensitive data analysis work."
Admin
I saw a cute solution for this on a tech site the other day - place the mouse on an analogue watch The movement of the hands causes the cursor to move slightly.
Of course the downside is someone would pinch the watch, and who wears a watch these days anyway?
Admin
Because it isn't just about locking your screen, it's about redistributing the work - when one user leaves, their unfinished work is passed on to another user.
The problem with the messagebox-based solution is that if a user leaves for 3 hours without logging out (not-as-short-as-anticipated meeting before lunch, followed by another long meeting), the message box sits there for the 3 hours until the user comes back to click on it, and only then (when that user expects to be logging back in) does it finally log the user out and send their work to another user (which may be a big issue if that particular analysis was due by noon and is now 2 hours late).
Admin
What is the problem with this code?
It might not be elegant, but it says that MessageBox.Show halts the program (that is, this code probably exists in the UI thread of the main window) and so the user cannot do anything while the MessageBox is shown? Unless, of course, not logging off immediately causes problems on the server, I don't see the WTF?
Admin
Reading on, neither do I. I thought he was referring to the file-not-found jokes earlier on.
Admin
Because it's a Microsoft product. Why is anyone still surprised when they get the details wrong?
Admin
VB.NET is essentially a newer version of VB. Also, you compared it to C#, which has VB.NET as its contemporary (not VB).
In other words, the context implied you were talking about VB.NET.
Admin
And I never understood why anyone would consider interrupting the user with a completely pointless, modal dialog box every 5 minutes good UI design.
I think this story clearly shows why programmers should be kept away from the UI at all costs. Even if it involves bodily harm.
Admin
BTW, if you want to say the my comments are usually complete rubbish, do it while logged in. I stand by most of what I said in the linked post, even though I made a technical error. The person I was responding to made a bold claim that any command prompt access on a workstation on a NetWare network would automatically lead to system compromise. He backed up that claim with an anecdote that he had accidentally NET SENDed a message to the wrong person. That deserved a harsh response.
Admin
Admin
Intent: if user clicks 'No', they're logged off immediately, if user clicks 'Yes', they're left logged in, and if user does not click anything within 30 seconds, they're logged off at that time.
Actual: if user clicks 'No', they're logged off immediately, if user clicks 'Yes' within 30 seconds, they're left logged in, if user clicks 'Yes' after 30 seconds, they're immediately logged off (gotcha!!), and if user does not click anything, the program leaves them logged in indefinitely waiting for a click. Neither of the last two options meets the requirements for this module, obviously ...
And evidently, the situation of the user being logged in indefinitely does cause problems with this particular program--that's why the module was being written in the first place. It's possible that TRWTF is that the main process can't cope with idle users, I don't know. But that doesn't excuse incompetent execution of the requested workaround.
Admin
Admin
Admin
MPS, is that you?
Admin
No, VB.Net is essentially a completely different product with similar syntax. VB generally means VB6, especially when paired with screeds about its insanity, while VB.Net is simply another CLR language with uglier syntax.