Jump to content

Language Pro's & Cons

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
bleastan

bleastan

    Learning Programmer

  • Members
  • PipPipPip
  • 40 posts
Hey all peoples here i got a short question:

We started getting programming excercises at school (subject information technology) and now we have to sum up Pro's and Con's of 3 different programming languages. The three languages discussed are PHP, ASP.net and JSP.

Ive looked around the web for quite a while and summed up some pro's and con's for each but i was just wondering what ppl here think are Pro's and Con's for each. Anything is appreciated :)

BTW i am new here to the forum and considering i just have programming for 1 hour a week, it got my interest already. So I prolly look on this forum alot but just cant contribute much since i got zero skill with programming.

Thx in advance already.

#2
Milyardo

Milyardo

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
I'm not sure how you can compare PHP to JSP and ASP. First, in that list PHP is the only language. ASP and JSP are platforms for development.

PHP scripts are CGI clients. They are executed by a CGI complaint webserver and return a text document for processing by a CGI server. PHP scripts are independent of the server they are executed by because environment variables are passed to them.

ASP and JSP however are more analogous to the CGI servers than individual PHP scripts.

ASP and JSP have their own interfaces for interacting with clients(ie the VB,C#,Java, or even PHP scripts your write), but also serve other functions like processing user initiated events with automatic post backs, managing advanced sessions options like user Login state/authentication/authorization and viewstates, and procedurally generates user executed code.


So while PHP alone only generates an HTML document, ASP and JSP encompass a larger scope, handling code from the browser its viewed on to the server which serves content.

Edited by Milyardo, 24 June 2010 - 12:27 AM.
spelling errors


#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
If you're looking for the basics, ASP requires Microsoft IIS to run and may not be a viable solution if your servers are running on a Linux distribution. PHP is often quoted for its ease of use for new developers, but it does include some fallbacks and is not as a complete language as the others (There are still problems and mistakes, but can be fixed with experience).

I would recommend looking at samples of each, and realize what scope of projects you're wishing to do. PHP may be the best solution, imagine it as the "BASIC" of web languages.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.