• Spencer (unregistered) in reply to ih8u
    using(var Tables = File.OpenText(Path.Combine("Dependencies", "tract.sql")))
    {
        Logging.Log(Logging.Type.Progress, Tables.ReadToEnd().Replace("/*_*/", "peacock"));
    }
    
    MessageBox.Show("STOP! DON'T PRESS OK!", "", MessageBoxButton.OK, MessageBoxImage.Stop);
    MessageBox.Show("STOP! DON'T PRESS OK!", "", MessageBoxButton.OK, MessageBoxImage.Stop);
    MessageBox.Show("STOP! DON'T PRESS OK!", "", MessageBoxButton.OK, MessageBoxImage.Stop);
    MessageBox.Show("STOP! Pressing OK once more will permantly scar your memories...", "", MessageBoxButton.OK, MessageBoxImage.Stop);
    
    // Prepare, then drop peacocks
    Process.Start("https://www.youtube.com/watch?v=o71kCuva4B4");
    
  • (cs) in reply to OldCoder
    OldCoder:
    MrOli:
    TRWTF is that pressing STOP will still delete the database, since noone's thought to check the return value from MessageBox.Show()...

    That's the REAL WTF, is it? That is the point of the whole thing? So if only they had considered testing the return value like you say, this would no longer be a WTF at all?

    The WTF is the fact that the four message boxes get presented to you in sequence, and no matter what button you press, it still goes and deletes the database tables.

    Captcha: eros. I wish.

    It's very sad, but I can actually see the sequence of business events behind this. "Joe! That code you put in that deletes the database, there are idiots out there calling that routine without realizing it does that. You need to add an alert box ASAP!" "On it, boss! I can knock that out in thirty seconds, easy!" ... "Joe! Your alert box is coming up, but I guess people aren't looking at it, because that database still keeps getting deleted!" "No problem, boss! I'll add a stop sign image and have it pop up a second time with an 'are you really sure?' message?" ... "Joe! That database got deleted again!" "Stupid #*#@!& users! Well, I know the drill--got this warning message thing down to a science!" ... "Joe, you won't believe this ..." "I know, boss. I don't know what more I can do! It's just user error." ... "Joe, I think I see what's happening with those database deletions ..." "I know what's happening, Danny. Our user base has some of the dimmest bulbs ever to fail to light up a room." "Um ... yeah, that's it alright. Hold on, I need to send an email to the Daily WTF."

  • Chris (unregistered)

    They should use something like that warning messagebox, except with a Stop/Cancel button implemented, as a replacement for CAPTCHAs. Only a human would then press OK, and they'll do it every time.

  • quuuuuuux (unregistered)

    Peacock. Peacock. Peacock. Password peacock. Peacock. Peacock.

    https://screen.yahoo.com/weekend-randall-meeks-000000711.html

  • Anonymous (unregistered)

    Anyone notice this WTF?

    using(var Tables = File.OpenText(Path.Combine("Dependencies", "table.sql")))
    {
        Logging.Log(Logging.Type.Progress, Tables.ReadToEnd().Replace("/*_*/", "dictionary"));
    }
    

    Reading the whole file into a string at once, then replace some strings, then log the whole file.

    If the file is a bit too large, it should instantly OOM.

    And also, reading a whole file just to log it and not use it for any other purpose, that's another WTF.

  • Taco (unregistered) in reply to Strong Bad
    Strong Bad:
    Nekrotzar:
    * Typing with 'fingers'

    Real men type with boxing gloves on their hands!

    I type by slapping my dick on the keyboard

  • (cs) in reply to Taco
    Taco:
    Strong Bad:
    Nekrotzar:
    * Typing with 'fingers'

    Real men type with boxing gloves on their hands!

    I type by slapping my dick on the keyboard

    Please, don't point and touch my screen.

    OT: If it's done with a dick (yours or someone's else) is it "touching"?

  • faoileag (unregistered) in reply to Julia
    Julia:
    faoileag:
    Julia:
    TRWTF is that pressing STOP will still delete the database, since noone's thought to check the return value from MessageBox.Show()...
    TRWTF is suggesting to test the return value of a MessageBox that only has an "OK" button.

    My bad, I misread it as having two (OK and Stop) buttons.

    I'll get my coat.

    Never mind, some others seem to have much greater problems with the way the coder "solved" the problem with preventing unintended db deletion :-)

    Filed under: isn't it too warm for a coat anyway?

  • Mister V (unregistered) in reply to Taco
    Taco:
    Strong Bad:
    Nekrotzar:
    * Typing with 'fingers'

    Real men type with boxing gloves on their hands!

    I type by slapping my dick on the keyboard

    qo xdff| hbm q twt hbg qeo bdflvs

    slapping doesnt work so well. but i found a way. gives a new meaning to hunt'n'pecker tho.

  • Rick (unregistered) in reply to Strong Bad
    Strong Bad:
    Nekrotzar:
    * Typing with 'fingers'

    Real men type with boxing gloves on their hands!

    Strongbad for the win!

  • Doranku (unregistered) in reply to nerd4sale

    I wasn't taking about the OS on the machine but the machine itself, the SRM console had the 1980-01-01 epoch on most machines (though apparanty some had 1900)

  • Obiwus (unregistered)

    A not-a-WTF (this is the MS-DOS epoch), a bit of a WTF, and a table with some strange content (which may or may not be a WTF, maybe all the other values are released software versions and Peacock is an unreleased project's codename)?

    Meh.

  • Ralfred (unregistered)

    Peacock is probably sentinel value, or perhaps a canary.

  • Assert(NULL) (unregistered) in reply to Valued Service
    Valued Service:
    Andrew:
    OldCoder:
    ...and no matter what button you press...

    ...of which there's only one, mind you.

    If you don't press ok, the message box will stay there indefinitely.

    A strange game. The only winning move is not to play. How about a nice game of chess?

  • Neil (unregistered) in reply to Norman Diamond
    Norman Diamond:
    faoileag:
    Julia:
    TRWTF is that pressing STOP will still delete the database, since noone's thought to check the return value from MessageBox.Show()...
    TRWTF is suggesting to test the return value of a MessageBox that only has an "OK" button.
    Actually it can be tested, though that doesn't lessen the WTFity of the message box design.

    If you click the [X]box at the upper right of a message box, it cancels the message box instead of OK'ing it.

    The native Windows MessageBox function allows the user to close the window (either via the close button or the Esc key) in one of two cases:

    1. If a cancel button is present, it is equivalent to clicking the cancel button (return value is 2)
    2. In the case of a box with only an OK button, it is equivalent to pressing the OK button (return value is 1)
  • Norman Diamond (unregistered) in reply to Neil
    Neil:
    Norman Diamond:
    faoileag:
    Julia:
    TRWTF is that pressing STOP will still delete the database, since noone's thought to check the return value from MessageBox.Show()...
    TRWTF is suggesting to test the return value of a MessageBox that only has an "OK" button.
    Actually it can be tested, though that doesn't lessen the WTFity of the message box design.

    If you click the [X]box at the upper right of a message box, it cancels the message box instead of OK'ing it.

    The native Windows MessageBox function allows the user to close the window (either via the close button or the Esc key) in one of two cases:

    1. If a cancel button is present, it is equivalent to clicking the cancel button (return value is 2)
    2. In the case of a box with only an OK button, it is equivalent to pressing the OK button (return value is 1)
    Hmm. I can cancel an ordinary dialog box by clicking its close button even if none of its ordinary buttons has IDCANCEL. You could be right that the native Windows MessageBox function has extra code to modify that result. Next, I wonder if an MFC message box uses the native Windows MessageBox function or something else (which I could answer by reading MFC's source code) and what a .Net message box does.

    When a message box displays mojibake instead of キャンセル, it seems pretty clear that the program forced the window to use an 8-bit font. A native Windows MessageBox gets its font from something on the Windows desktop so it has to be a Japanese font (otherwise the desktop wouldn't even be able to show ごみ箱). I assumed that screwed up message boxes had to come from a program abusing MFC.

  • (cs) in reply to anon
    anon:
    I am a peacock, you gotta let me fly!

    Have you ever seen a peacock fly?

  • anonymous (unregistered) in reply to Nagesh
    Nagesh:
    anon:
    I am a peacock, you gotta let me fly!

    Have you ever seen a peacock fly?

    No, but I've never seen your brain either.

Leave a comment on “A Priestly Epoch, Running off the Tracts”

Log In or post as a guest

Replying to comment #:

« Return to Article