?

Log in

No account? Create an account
entries friends calendar profile Previous Previous Next Next
Visual bloody bollocks basic. - Ed's journal
sobrique
sobrique
Visual bloody bollocks basic.
Today has been VBS day.

Been a bit grumpy, as when I'm concentrating on code, when I say "just a minute" that means – I acknowledge you want attention, but I’'m right in the middle of thinking about something, and will lose my train of thought if I stop right now, so please stand by.

Not "carry on talking at me, and asking me to respond meaningfully when I’m concentrating".


However this annoyance pails into insignificance:

"On Error Resume Next"

I’m modifying some code.

I have found some MONKEY has put this in, and … well, hadn't given it much thought.

It’s a great VBS hack. What it means, is if you right crap code, then the program should just BODGE ON ANYWAY.

Yeah. So … if I typo in my loop, such that it’s a runtime error (like for example, using "sleep(60000) rather than "wscript.sleep 60000") it just … skips that loop, and carrys on, neatly jumping over my "while" loops, singing "lalalaalala, no you don’t want to do that bit, I'll ignore it".

Which moron, designed a programming langage where this was EVEN POSSIBLE.

It is acceptable to have runtime errors, not crashing a program. It is acceptable when I write some error handling code, that explicitly defines the behaviour when I do this. So I can … try running a command, and if it’s not there _do something else, defined_ not just arbitrarily continue and pretend it never happened.

GAAH.
3 comments or Leave a comment
Comments
mister_jack From: mister_jack Date: August 14th, 2008 06:08 pm (UTC) (Link)
Which moron, designed a programming langage where this was EVEN POSSIBLE.


The problem is not it being possible; there are limited number of circumstances where one might wish to do it in a limited area of tested functionality.

The problem is that the code you are working on was written by an idiot.
warmage From: warmage Date: August 14th, 2008 06:51 pm (UTC) (Link)
To paraphrase Jack Handey..."...I have to laugh, because, what the hell is that?"

Total gobshite. However, in the grand scheme, it's those little trinkets, love 'em or hate 'em, that allow "people" (meaning, people that ought not to write code) to "get the job done" (meaning, it compiles without errors, ship it!) on time and under budget.

Sucks. It's IT.

...oh wait isn't that a tad redundant, what I just said there?
stgpcm From: stgpcm Date: August 16th, 2008 08:35 am (UTC) (Link)
It's not so bad when you specify which errors it applies to, and localise it.
3 comments or Leave a comment