/    Sign up×
Community /Pin to ProfileBookmark

Server Side Scripting of Tomorrow?

This is my first post on these boards but I hope it’s taken well. I am looking for advice in terms of what Server Side Scripting language I should take on for my first portfolio website. I have origianlly programmed in Perl/CGI back in the day, and than picked up Java and JSP (in which I have done some work). I skipped the PHP generation and recently entering Barnes&Nobles found dozens and dozens of books on PHP. PHP and MySQL, PHP and Flash, PHP and CGI, and so on. I decided to give PHP a spin and set down to try and write a very simple Calendar program. This is something I have done in many languages and am very familiar with, so it’s something like a HelloWorld for me.

When I set down to start I decided to go straight to a OOP setup as it’s most familiar after comming from Java. Having to refrence the docs which I found a bit inferior to Java’s I began to write the basic structure and hit my first problem. Class/function overloading. It really bothers me that PHP does not assign types to it’s variables on initialization and that made something like this very difficult to do.

$instance1 = new Month(1);
$instance2 = new Month(‘Feb’);
$instance3 = new Month(‘February’);
$instance3 = new Calendar(2006);
$instance4 = new Calendar(‘Feb’, 11, 2006);

The answer I found to this was func_num_args with if/else (or switch statement) basically figuring out the input.

I found that ridiculous, spending 10 lines of code to simply figure out the input is a bit much I think. So being a bit frustrated I came here to ask you (reader) this; should I stick with PHP and join the crowd or should I go with JSP?

Their are also other alternatives like ASP which has the popular ASP.NET

Overall I don’t feel that any language is inferior to another in terms of capability, but I want a language that is fast/secure and that can go into a portfolio.

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@welshFeb 12.2006 — try reading this: http://www.oracle.com/technology/pub/articles/hull_asp.html

its a run down of the pros and cons of php vs asp. i believe majority of web servers are linux servers so they do not support asp but rather php.
Copy linkTweet thisAlerts:
@felgallFeb 12.2006 — There is an ASP add-on for Apache so that it can run on Linux.

Big companies tend to host their own sites on Widows servers and therefore look for people with .NET (the ASP replacement).

Small companies tend to have their sites hosted on Linux servers and therefore usually use PHP.
Copy linkTweet thisAlerts:
@ray326Feb 13.2006 — I hear ASPX is a bit more like JSP but I've yet to work with it. Right now PHP is the most useful commodity tool on the web, especially for CMS-like sites. Other scripting possibilities that have big followings are Python and Ruby.
×

Success!

Help @kofman2155 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...