sobrique: (Default)
[personal profile] sobrique
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.

Date: 2008-08-14 06:08 pm (UTC)
From: [identity profile] mister-jack.livejournal.com
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.

Date: 2008-08-14 06:51 pm (UTC)
From: [identity profile] warmage.livejournal.com
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?

Date: 2008-08-15 10:21 pm (UTC)
From: [identity profile] syntheticbrain.livejournal.com
Y'know. I'd really love to be able to say "Welcome to my world" (VBA development is supposed to be 1/5 of my job).

However, I spend so much of my time in meetings, wrangling with IS, and doing systems/data analysis the Dev team should be doing that I can't remember the last time I wrote any substantial vba. On the basis it's the nearest thing to a proper Dev Tool we have, I miss it : (

Date: 2008-08-16 08:35 am (UTC)
From: [identity profile] stgpcm.livejournal.com
It's not so bad when you specify which errors it applies to, and localise it.

Profile

sobrique: (Default)
sobrique

December 2015

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728 293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 10th, 2026 04:21 pm
Powered by Dreamwidth Studios