in reply to •Re: Friends don't let friends use ASP?
in thread Friends don't let friends use ASP?

I haven't worked with ASP in quite a while, but unless things have changed, the only languages avaible are VBScript, JScript, and PerlScript as an add-on component. One significant problem was that PerlScript was ridiculously slow compared to VBScript. Also, from what I could tell, the PerlScript modules that are included seem to encourage programmers to mess around with object internals. Want to get the session ID?

$session->{SessionID};

Want to change the timeout?

$session->{timeout} = 15;

Not only is that bad coding style, but I deliberately put in a typo in the second example. The hash key is capitalized. If those were method calls, there wouldn't be an issue. Naturally, those are examples that are pulled straight from Microsoft docs (why is it that I always find such awful examples of code practices in Microsoft code snippets?). Perhaps there are accessors and mutators available, but the docs didn't make this clear. Code like they show is a sure recipe for disaster.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: Re: •Re: Friends don't let friends use ASP?
by runrig (Abbot) on Aug 22, 2002 at 17:44 UTC
    One significant problem was that PerlScript was ridiculously slow compared to VBScript

    I hadn't heard that before, and I haven't really done extensive benchmarking, but on the couple of JavaScript pages that I rewrote in PerlScript, there wasn't any significant difference. One page was reading filenames from a directory and displaying them, and the other was fetching data from a database (Update: yes, I realize these are not good examples for benchmarking the raw speed of a language, but on most of those pages, the bottleneck was the database (and development time :-)). This was just for an internal website, and not very high traffic, so YMMV.

    The other thing is, if you are going to go with ASP and PerlScript, then Matts' Intro to PerlScript and his Win32::ASP module are your friends.

      BTW, those are both very poor pages for determining the speed of the language from; they're both likely to be IO-bound. But, indeed, YMMV -- if these are typical pages of yours, the speed of the language isn't likely to matter.


      Confession: It does an Immortal Body good.