Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 28th, 2006, 8:39 PM   #1
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
CGI vs Server-Side

I am design whether to go either with CGI with Perl or Server-Side with JSP. I am asking this in this forum because I want to know what your opinion is. Please share them.
Toro is offline   Reply With Quote
Old May 28th, 2006, 9:06 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
CGI is server side. CGI is an interface specification (a standard, actually) that some server-side languages use to deal with the HTTP protocol. I have no idea if JSP works directly with the HTTP or if it uses another interface. Perl typically uses the CGI. Python can, if one wants to. There are other frameworks. JSP, ASP, et.al., are active server pages. This means one can build response content actively, mix it with static content, whatever, then when the whole response is built, spit it out.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 28th, 2006, 9:31 PM   #3
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
Would you go with something like Perl, Python, etc. or PHP, JSP, ASP?
Toro is offline   Reply With Quote
Old May 28th, 2006, 10:11 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I would go with Python, at this point, because I'm enamored with it. I'm doing my first web app, which is for me. If it were a client, I would go with PHP. That's strictly because I have enough PHP/mySql under my belt to feel comfortable that I'm not charging my client for my educational experience. I used Perl about six years ago. It's fine, but my personal opinion (and that's all it is) is that it has been somewhat left in the dust. I've never used JSP, but I'm not a Java fan (the last time I used it was at the same time I used the Perl). I'm most definitely not an MS/ASP fan, although I decry the tendency for people to bash them (because I think most bashing is copycat, and not from real experience used to form valid opinions).
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 29th, 2006, 12:27 AM   #5
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
I don't really know squat about Python, but for web development overall, I would generally go with PHP. Tried Perl/CGI, and didn't like it. ASP and ASP.NET were not much of an option for me because I didn't want to use IIS ( I learned the hard way trying to run a windows server). JSP I haven't tried. I would say go with PHP. It's the easiest and probably the most powerful. And as the for the support, it can't get too much better
Booooze is offline   Reply With Quote
Old May 29th, 2006, 3:58 AM   #6
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Toro
I am design whether to go either with CGI with Perl or Server-Side with JSP. I am asking this in this forum because I want to know what your opinion is. Please share them.
JSP will be faster, but considerably more complex.

Perl CGI will be slower, but easier for simpler things.

A staight choice between Perl and JSP seems a little odd, as they pretty much require different servers.

You may wish to consider other options, such as PHP if you're doing something simple; or frameworks such as Ruby on Rails, Django or Turbogears, if you're doing something complex.
Arevos is offline   Reply With Quote
Old May 29th, 2006, 4:57 AM   #7
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
What would be considered small when using PHP?
Toro is offline   Reply With Quote
Old May 29th, 2006, 6:11 AM   #8
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Anything less than a complete web application, I suspect. If you just want special functionality on a particular page, or set of pages, PHP would probably do pretty well. If you wanted to design a web-based application of some kind, and the functionality needed wasn't readily available from an open source project somewhere, then I'd advise using a Ruby on Rails-like platform.

I hear CakePHP is pretty good too; essentially PHP on Rails. It suffers from the limitations of PHP; Python and Ruby far outstrip PHP in terms of functionality and elegance. But CakePHP seems like a nice "middle way" between straight PHP and Rails.
Arevos is offline   Reply With Quote
Old May 29th, 2006, 8:30 AM   #9
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
I would want something complex as a shopping cart and with an update web application where I would just update products just using that application.
Toro is offline   Reply With Quote
Old May 29th, 2006, 8:47 AM   #10
free-zombie
Programmer
 
free-zombie's Avatar
 
Join Date: May 2006
Location: Bavaria, Germany
Posts: 50
Rep Power: 0 free-zombie is an unknown quantity at this point
Send a message via ICQ to free-zombie Send a message via MSN to free-zombie Send a message via Yahoo to free-zombie
like OsCommerce ?]
Use what you're comfortable with. If you know Java, you might want to go with JSP or Trails (Java on Rails). Of you don't know anything, go for php, it's nice. OsCommerce is written in PHP - poking around in it should be educational.... (I've worked with it..,. abstraction layers everywhere which I, under time pressure, cunningly avoided )
free-zombie is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:56 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC