LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2003, 08:44 AM   #1
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
need some advice on language choice(Perl vs PHP)


Hey guys, don't mind the brief summary

I've been hired to create a website for this company. The reason i got is a) i'm cheap (so far ), b) they need it up within a month (and the other candidates required more time) and c) i need the experience.

The site is an application site for a beauty pageant. The idea is that a regular site visitor can go on the site and browse the current candidates and vote on who they like most, etc. Also potential candidates can register and put up their application on to the site (once approved, etc) for others to see and vote on. They should be able to change their settings (add more photos, etc). As well an admistrator mode should be available to enable/disable contests, archive previous contest, review candidates, etc.

The cool thing is that i have complete freedom of design and implementation. It's all up to me, so i can go all out on creativity and this is a great oppertunity for me to get some great experience (though web development isn't my primary area of education).

Anyway, i know Perl. And i'm generally fairly good with it and know CGI.pm, database connectivity and session handling. The only issue is the last time i worked on such a site idea (course project) it turned ugly fast. Though i managed to do a good job, i wasn't personally satisfied with the code i wrote (it was very messy and disorganized).

Instead of just jumping into it, i've decided to take a more systematic approach and spend some time on actual design (noun filtering for classes, sequence diagrams, etc). That having said, i want to take an object oriented approach to lesson keep it *simpler* in the end.

So i'm wondering which language to use this time around (ie wether to stick to Perl). The web server they use supports Perl, PHP with mySQL. Now i've never used PHP much, so i'm wondering if that would be a better choice or not?

So what are your guys opions on Perl vs PHP. I definatly don't mind learning a new language. To me, i want to an object oriented oproach and make a good, well designed site (both in looks and more importantly in efficiency, hence why i'm not picking Java).

I should find out wether their server supports Python or Ruby, maybe one of those would be an intersting alternative?

Anyway, any adivice is greatly appreciated.

Cools.
 
Old 11-14-2003, 09:04 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
you might want to have a look at some of the CMS available on the net before starting your own

http://www.cmsinfo.org/
php-nuke, Zope, OpenCms, postnuke, etc.
 
Old 11-15-2003, 02:32 PM   #3
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
Do you mean java or javaSCRIPT?

java script is messy. good for small stuff.
on the other hand, Java is object oriented and efficient, also with the right graphics, looks great.

python is nice, very simple.

titanium_geek

Last edited by titanium_geek; 11-15-2003 at 02:35 PM.
 
Old 11-15-2003, 03:56 PM   #4
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Original Poster
Rep: Reputation: 30
Considering i know both, i meant Java as in Java

I have some form of experience in all of the languages i've mentioned(PHP i barely touched, though it's fairly close in syntax to Perl), though i haven't obviously touched CGI in Python in particular. So i'm wondering what some good alternatives are to Perl when it comes to CGI.

I've been doing some research over the last day, and i'm generally liking the way Python does CGI. PHP looks nice as well. So i'm going to dig a bit deeper to see which one will ultimately be the best choice (or use a combination of both).
 
Old 11-15-2003, 04:21 PM   #5
BlakeJob
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Rep: Reputation: 0
For me personally this is how I would rate it (perl vs php):

Perl - if time is the biggest issue (you can do a lot with so few lines)
PHP - if you structure/design/cleanliness is a big issue I would choose PHP. I find it much cleaner then perl, I really enjoy how PHP is evolving (so easy to do OO).

I have never touched Python or Ruby (though I have heard good things), but I do recommend that you check out www.devshed.com if you have not all ready. Good luck!
 
Old 11-15-2003, 05:27 PM   #6
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Original Poster
Rep: Reputation: 30
Excellent, thanks for sharing your experience in this regard, BlakeJob.

And yeah, i've been checking devshed quite a lot latelly
 
Old 11-17-2003, 03:57 AM   #7
LOUDSilence
Member
 
Registered: Oct 2003
Location: Sydney
Distribution: Red Hat 8
Posts: 77

Rep: Reputation: 15
Have you looked at what cgi langs is available on the server of the company you are doing the job for. It should have Perl and PHP but I would check that first. (If you have not already.)
 
Old 11-17-2003, 04:02 AM   #8
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Original Poster
Rep: Reputation: 30
Ofcourse

It's the usual Perl, PHP. But also Python. I have to admit, i was kind of hoping they would have a MS server with ASP.NET. It's so much faster and easier to develop web forms
 
Old 11-17-2003, 04:41 AM   #9
LOUDSilence
Member
 
Registered: Oct 2003
Location: Sydney
Distribution: Red Hat 8
Posts: 77

Rep: Reputation: 15
I have to do the same thing as you, and I have to say you are braver then me. I would go with the lang that I have more experiance with. As you said they need it in a month. I know some people think perl is not the best. But it is the one I am most comfortable with and I can get more done in less time. What I mean is not looking on the net for information on a new lang when I know one that could have got it done quicker.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Video card choice advice exit3219 Linux - Hardware 3 06-27-2005 07:19 AM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
Request advice on card choice and software needed to run 'g' ap obsean Linux - Wireless Networking 0 04-07-2004 09:09 PM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 06:15 PM
the choice of language.......... anoop_chandran Programming 4 11-28-2001 09:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration