Confessions of a Javascript Master

Sat, January 5, 2008
Filed under: Coding, Geekyness, Humor, Rants, Work

… well “master” is pushing it a bit, but makes for a flashy title. I was going to post about my creepy stalker(s). Alas, none showed up. Couple that with the fact that a certain Snark member decided not to sue herself for libel(nu LULZ) this is what you get: way too much free time and boredom.

[edit] Rewritten to make it clearer… hopefully -_-; [/edit]

There are some things I instantly take a dislike to: Java1, for example. As with all instant dislikes, no good reason was to be found. I was annoyed at having to use Notepad to edit code files, which meant no color coding and no automatic indentations. Add to that using command prompt to debug. What do you get? One great mess and an extremely pissed of Vera.

Javascript and I, started out on friendly terms. My first encounter with it was during my n00b days. I decided that my invaluable (Dreamweaver-generated) coding must be worth a fortune, and thus warranted the disabling of right clicking. Sure, there was the little matter of yours truly being highly annoyed when it happened to her, but who counted that?

(read more…)

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.

Mystical Drama: an Unrequested Review

Mon, October 22, 2007
Filed under: Coding, Humor, Internet, Reviewing

[EDIT January 26th 2008]
Do I even need to say it? You get what you want. ;) Oh yeah, she’s moved to Kawaiipurinsesu, in the meantime.
[/EDIT]

For those of you who’ve been regular visitors, you would know that I never start e-drama. I admit to feeding e-drama, and egging the participants on, but I never start e-drama. Why? Free link to the “victim”. However I decided to make an exception this time. After all, if Barbi kept accusing me of starting drama I might as well do it.

Piqued your interest? Then read on for an unrequested review of Mystical Drama (that’s the site’s name, by the way).
(read more…)

Older Posts »