Advantages and Disadvantages of ASP over CGI/Perl?

Discussion in 'Software for Windows' started by davidkay, May 7, 2003.

  1. davidkay

    davidkay Senior member

    Joined:
    Nov 6, 2000
    Messages:
    265
    Likes Received:
    0
    Would somebody be kind enough to give me some Advantages and Disadvantages of using ASP compared to Perl or CGI on my web site?

    Thanks :)
     
  2. Loading...

    Similar Threads - Advantages Disadvantages Perl Forum Date
    New Windows 10 on Flash Drive. What are the advantages / disadvantages? Software for Windows Dec 11, 2016
    OUtlook 2007 - IMAP vs POP3, any advantages? Software for Windows Jul 19, 2014
    Microsoft Office 365 Pro Plus Student Advantage where do I find it? Software for Windows Dec 1, 2013
    Windows Genuine Advantage kit Software for Windows Mar 18, 2009
    What video editing software takes full advantage of Quad Core? Software for Windows Apr 12, 2008

  3. notfred

    notfred Lifer

    Joined:
    Feb 12, 2001
    Messages:
    38,243
    Likes Received:
    0
    Disadvantage of ASP: You have to run it on an MS server.
    Advantage of ASP: All that microsoft crap you can do, like integratino with access databases and stuff, is relatively easy.
     
  4. davidkay

    davidkay Senior member

    Joined:
    Nov 6, 2000
    Messages:
    265
    Likes Received:
    0
    Any more? I'll be honest: I got an exam i'm revising for but I cant seem to find any good reasons. Why would I use CGI over ASP?

    Thanks, any more would be a great help!
     
  5. kt

    kt Diamond Member

    Joined:
    Apr 1, 2000
    Messages:
    5,014
    Likes Received:
    10
    Uhmm.. ever heard of ChiliSoft ASP? Or now Sun ONE ASP? Both for Unix based OS'es.
     
  6. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    The only reason I can think of is that with ASP on IIS you have access to a lot of COM objects, so you don't have to reinvent the wheel all the time. But with the mentioned ASP implementations on unix you're limited because noone of those COM objects so all you get is the ability to use VBScript.

    I would personally recommend perl (using mod_perl on Apache) because you have tons of free modules to use and it's mostly portable, you're not tied to IIS on Windows. I would avoid CGI because it's slow, you need to fork a new process for each CGI request and it's hard to do session tracking for things like "shopping carts".
     
  7. Descartes

    Descartes Lifer

    Joined:
    Oct 10, 1999
    Messages:
    13,970
    Likes Received:
    0
    Nothinman pointed out the most important factor: CGI applications create a new process for EACH HTTP request; ASP does not.

    Some other advantages of ASP:

    - You can use any language that has an ActiveX scripting engine (e.g. JScript, VBScript, Perl, etc.)
    - You have access to a late-bound COM programming model, therefore you have almost infinite access to third-party components to do much of what you would otherwise have to do by hand.

    There are many more disadvantages :) ASP.NET is an entirely different story, however...
     
  8. Barnaby W. Füi

    Barnaby W. Füi Elite Member

    Joined:
    Aug 14, 2001
    Messages:
    12,343
    Likes Received:
    0
    I think you are confused about the issue. CGI is "Common Gateway Interface", you can use any langauge you want with it, or for that matter any executeable program that can print http headers and html. I don't claim to know much about ASP, but it seems to serve a somewhat similar purpose; to provide a common platform for doing web development in whatever language you decide to use.

    As far as why you would want to use CGI over ASP, I suppose it depends on the context. I wouldn't call CGI an elegant solution by any means, but then again, I do use CGI and not ASP.. so there are reasons. :) From a "proper" standpoint, CGI is pretty barbaric, but for my basic uses (writing python scripts for fun), it doesn't really matter all that much, and it requires no effort to set up.
     
  9. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    Noone is confusing that issue, it's that very feature that is the problem. The web server has to fork the interpreter to run the CGI every time a request to that CGI is submitted, it's the whole reason mod_perl was created, to stop the slow down from forking /usr/bin/perl with every request.

    Accept that it's interpreted inside the daemon so it's only interpreted once (well it probably checks the file mtime and reinterprets so you don't need to keep restarting the daemon to test code) and run many times.
     
  10. davidkay

    davidkay Senior member

    Joined:
    Nov 6, 2000
    Messages:
    265
    Likes Received:
    0
    Some fantastic answers :) I'm pretty sure this question will come up in my final paper. Thanks for your help :) You prob got me at least 5 marks :D
     
  11. Zugzwang152

    Zugzwang152 Lifer

    Joined:
    Oct 30, 2001
    Messages:
    12,134
    Likes Received:
    0
    Intersting...Perl seems to be the favorite around these parts...but why would one use Perl over an equally useful script like PHP for instance?
     
  12. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    I don't use php, but perl's string and regexp capabilies are astounding and most web page processing involves strings and for anything else there's usually a perl module from cpan, there's modules for everything from IMAP access to creating PDFs and mod_perl makes perl execution just as fast as php in apache.
     
  13. Superwormy

    Superwormy Golden Member

    Joined:
    Feb 7, 2001
    Messages:
    1,637
    Likes Received:
    0
    Don't forget also that Perl is more of a tried and true solution than ASP. ASP is still relatively new while Perl has been around for like 15 years. A lot of Unix farmilar people also already know Perl because it has been used for system admin previously.

    I also don't believe that Chillsoft ASP or SunOne ASP are complete solutions, they're still lacking I believe as compared to the Windows ASPversion... but I'm not sure on this...
     
  14. EmperorRob

    EmperorRob Senior member

    Joined:
    Mar 12, 2001
    Messages:
    968
    Likes Received:
    0
    Can't speak for php b/c I'm not all that familiar w/it. But perl has 1000s of modules including ones for CGI and HTML parsing. It's biggest power though is file/text read-writing, which is easy and fast. And basically it's got similar functions and solutions of everything you can find in C. Its syntax makes sense and is easy to learn.

     
  15. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    As much as people b!tch about perl, it's syntax is farily simple and is easy to learn. And whenver perl 6 is released there's a lot of little fixups that fix some of the stranger aspects like how you access an array as @array but you access an element of that array $array[0].
     
  16. Shazam

    Shazam Golden Member

    Joined:
    Dec 15, 1999
    Messages:
    1,136
    Likes Received:
    0
    ASP new? It's been out since 1996!!
     
  17. Descartes

    Descartes Lifer

    Joined:
    Oct 10, 1999
    Messages:
    13,970
    Likes Received:
    0
    Perl has been around in the context of web-applications about as long as ASP (I'm not going to look up the exact years). ASP isn't tried-and-true? That's absurd.