Click here to get back home

php vs perl for RDBMS backend work

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
php vs perl for RDBMS backend work dcruncher4 03-02-2008
Get Chitika Premium
Posted by dcruncher4 on March 2, 2008, 1:27 pm
Please log in for more thread options
Hi,

I would like to get an opinion on using php vs perl for backend
database related work. This is basically a script for nightly batch jobs
which reads from different databases and write to databases.
So far I have used perl/DBI for this.

I am looking into the possibility of using php for the same, if it
provides any significant benefit in code maintenance etc.

TIA.


Posted by Jerry Stuckle on March 2, 2008, 2:59 pm
Please log in for more thread options
dcruncher4@aim.com wrote:
> Hi,
>
> I would like to get an opinion on using php vs perl for backend
> database related work. This is basically a script for nightly batch jobs
> which reads from different databases and write to databases.
> So far I have used perl/DBI for this.
>
> I am looking into the possibility of using php for the same, if it
> provides any significant benefit in code maintenance etc.
>
> TIA.
>
>

Both are just languages. Neither one has any particular advantage in
maintenance, etc. It much more depends on the programmers who write the
code, how well the code is written and commented, the skills of the
people maintaining the code, and a bunch of other things.

And if it's working now, I see no reason to invest a bunch of time and
money rewriting it. Don't fix what isn't broke.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by dcruncher4 on March 3, 2008, 11:55 am
Please log in for more thread options
Oh no. This is not to rewrite existing code. I want to check
whether it is worth investing on php for any new code. of course
my boss will ask me to justify why I would want php when perl
has been doing the job fine so far. I can't tell that the only
valid reason is that I want to learn php and add it in my resume (haha).

So I need some real reasons as to why php is superior to perl.
I got one so far: It has a more natural support for OO, which I agree.

thanks.

>Both are just languages. Neither one has any particular advantage in
>maintenance, etc. It much more depends on the programmers who write the
>code, how well the code is written and commented, the skills of the
>people maintaining the code, and a bunch of other things.
>
>And if it's working now, I see no reason to invest a bunch of time and
>money rewriting it. Don't fix what isn't broke.
>


Posted by Jerry Stuckle on March 3, 2008, 1:04 pm
Please log in for more thread options
dcruncher4@aim.com wrote:
> Oh no. This is not to rewrite existing code. I want to check
> whether it is worth investing on php for any new code. of course
> my boss will ask me to justify why I would want php when perl
> has been doing the job fine so far. I can't tell that the only
> valid reason is that I want to learn php and add it in my resume (haha).
>
> So I need some real reasons as to why php is superior to perl.
> I got one so far: It has a more natural support for OO, which I agree.
>
> thanks.
>
says...
>> Both are just languages. Neither one has any particular advantage in
>> maintenance, etc. It much more depends on the programmers who write the
>> code, how well the code is written and commented, the skills of the
>> people maintaining the code, and a bunch of other things.
>>
>> And if it's working now, I see no reason to invest a bunch of time and
>> money rewriting it. Don't fix what isn't broke.
>>
>
>

True, but if everything else is in Perl, I would agree with your boss.
Having something in two different languages means you need twice the
skill set to maintain it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by Toby A Inkster on March 4, 2008, 5:56 am
Please log in for more thread options
dcruncher4 wrote:

> So I need some real reasons as to why php is superior to perl. I got one
> so far: It has a more natural support for OO, which I agree.

PHP's version of the OO paradigm is a lot more familiar to people who come
from Java backgrounds, because it has familiar ideas like classes and
objects, with methods and properties, but Perl's OO is more flexible. Perl
can do, for instance, multiple inheritance, whereas PHP and Java cannot.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 34 days, 17:01.]

Bottled Water
http://tobyinkster.co.uk/blog/2008/02/18/bottled-water/

Similar ThreadsPosted
Online Graphing Calculator - Perl Backend June 22, 2006, 11:11 pm
Running Perl script in the backend from Html September 11, 2007, 1:17 am
Running Perl script in the backend from Html September 12, 2007, 11:51 pm
CPANPLUS::Backend and Inline::Java August 18, 2004, 5:24 am
moving binary data from one RDBMS to Other February 6, 2008, 11:50 am
FAQ 3.24 How can I get "#!perl" to work on [MS-DOS,NT,...]? February 1, 2005, 6:03 am
FAQ 3.23 How can I get "#!perl" to work on [MS-DOS,NT,...]? April 14, 2005, 11:03 pm
FAQ 3.23 How can I get "#!perl" to work on [MS-DOS,NT,...]? June 30, 2005, 10:03 am
FAQ 3.23 How can I get "#!perl" to work on [MS-DOS,NT,...]? August 12, 2005, 4:03 pm
FAQ 3.23 How can I get "#!perl" to work on [MS-DOS,NT,...]? October 27, 2005, 10:03 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap