Hand Me a Fork

| | Comments (1)


You know I must have some free evening time if I'm bitching about vbscript again. I'd forgotten how horrible it is, honestly. Read for more bitching.
You can't declare a variable and set it at the same time:

Perl
my $foo = $q->params("bar");

VBScript Spawn of the Devil "Language"
Dim Foo
Foo = Request("Bar")

No multi-line strings (I've bitched about this before, but when entering in huge ass SQL queries, it gets to you):

Perl
$sql = "select foo
from bar
where baz = 123
group by qux;"

Or
$sql = <<END;
select foo
from bar
where baz = 123
group by qux;
END

... plus a few other ways to do it of course...

VBScript Horror to All that Use it
SQL = "select foo "
SQL = SQL & "from bar "
SQL = SQL & "where baz = 123"
SQL = SQL & "group by qux"

Or this, not much better....
SQL = "select foo "
"from bar " &_
"where baz = 123" &_
"group by qux" &_

I don't know how people use this without jamming a fork in their eye after a couple of hours, honestly.

</rant>

1 Comments

ritchie said:

yes, at one point i'm trying to gauge my eye out with a spoon! A SPOON!!!!

About this Entry

This page contains a single entry by Arcterex published on May 3, 2004 10:52 AM.

Averted Apple Rant was the previous entry in this blog.

Photographing Lunar Eclipses is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.25