I R Real Programmer

Tue, November 6, 2007
Filed under: Coding, Geekyness, Humor, Work

EDIT November 8th: there is a very good reason I shouldn’t post at 2:00 am; especially when I’m practically asleep1. Hopefully, this way it’s clearer. Screenshots were created by me using photoshop (they are not from the actual website).

The website I am working on, has a lot of submission forms, where various data is being input, as well as validated and then - if correct - processed using ASP.NET. Seeing as we have a deadline shortly, debugging was high on the list. As ‘luck‘ would have it, crashes seemed to get weirder by the hour. “I swear it was working properly yesterday” could very well become our motto soon.

But back to the bug in question: a co-worker (a.k.a cw ’cause I’m lazy), demonstrated his amazing bug find.

Step1: introduce an invalid file type (in this case a fictional one without extension). Error message reads: Invalid file type. Please select another one.

step1

Step2: keep typing away. You will eventually notice that user-editable areas are larger than they might initially appear.

step2

Step3.1: Start removing evidence of your weird achievement. Everything normal so far.

step3-1

Step3.2: Keep removing the text. Not normal anymore, but it’s a handy feature2 nonetheless.

step3-2

Step3.3: You’re still pressing the delete key. This feature is not quite what you had in mind, but might as well see what it does.

step3-3

Step3.4: Deleting away… even though you shouldn’t be able to.

step3-4

Step3.5: Pressing delete once again. On second thought it’s best to hide all traces. Popularly known as “WTF??“.

step3-5

Summed up: basic submission form with an error message accessed from Internet Explorer 7 (and 6). Repeated introduction of invalid data is apparently possible to otherwise non user-editable areas (i.e. inside a span tag). And repeated deletion deletes the span tag, and a file upload input control.

I later found out that said cw managed to fix the problem:

Me: By the way CW, did you check it in Firefox as well?
CW: Yes. It doesn’t happen. But I fixed it.
Me(impressed): Really? What was the problem?
CW: I don’t know, but I can avoid it.

Since idiot-proof programs(websites) are no match for idiots (the latter being the better), the conclusion is clear. Feel free to draw it yourself :D

________________
1 bet none of you can sleeptype: sleepwalking is overrated.
2 there are no bugs, only misunderstood features.

13 Comments

  1. Tracy on Wed, November 7, 2007 at 11:06 am

    Hm, no idea what you’re talking about. Oh wait, I know IE and the Delete Key :)

     
  2. Kaylee on Wed, November 7, 2007 at 9:23 pm

    … *blank stare*

    I am going to be so lost when I take a programming course this year…

     
  3. Lene on Wed, November 7, 2007 at 11:07 pm

    I “kinda” got it the first time I read it. I read it before the screen shots and with the screen shots. My degree of understanding didn’t change XD

     
  4. Kaylee on Wed, November 7, 2007 at 11:48 pm

    Okay, LOL, that makes sense now. Funny bug :P

     
  5. Louise on Thu, November 8, 2007 at 11:10 pm

    Out of all the IE bugs, that’s one of the weirdest I’ve ever seen. o_O

     
  6. Rilla on Fri, November 9, 2007 at 3:22 am

    That is soooo cute. Majick!

     
  7. Nan on Sat, November 10, 2007 at 8:01 am

    That’s strange - and quite random. You certainly managed to document it well :)

     
  8. Beth on Wed, November 14, 2007 at 6:40 am

    Re-reading this after an thorough explanation, I get it :P

     
  9. Nika on Sun, November 18, 2007 at 11:48 am

    Sorry for being OT, but I’ve tagged you:
    http://brontide.org/2007/11/18/ive-been-tagged/

     
  10. Susie on Mon, November 26, 2007 at 11:00 am

    :P I’ve no idea what this post is about, but it does sound very interesting! Lol.

     
  11. Vera on Mon, November 26, 2007 at 11:05 am

    *is despairing now* An IE bug, which under certain circumstances let’s you delete a form, though you only intended to delete the content of a text input…

     
  12. Carly on Mon, November 26, 2007 at 3:43 pm

    I got it first time I read it (with pictures) I R Genius!

    How bizarre though… but fun …*runs off to try and delete all of the forms on the interwebz!*

    Heheheh…

     
  13. Crissy on Mon, November 26, 2007 at 8:28 pm

    It took me forever to get that (I still couldn’t summarize it for you)…interesting feature.

     

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.