|
Posted by Bill H on May 24, 2008, 6:32 am
Please log in for more thread options
Preface: This is not a flame war, please don't turn it into one.
I am involved in a very large project that will be doing a lot of
talking to Postgres databases (possibly using a a RST middleware). The
database guys want to use php for all of their stuff, I want to use
perl for mine. The reasons I want to use perl are:
1) I have been working in it for 10+ years
2) I have 10's of thousands lines of code written (some very complex
creating pdf's on the fly etc)
Is there a valid reason I should switch to php versus perl (or vice
versa they switch to perl)? Portability, ease of maintaining, speed of
execution, security etc?
Bill H
|
|
Posted by sheinrich on May 24, 2008, 6:51 am
Please log in for more thread options
> Preface: This is not a flame war, please don't turn it into one.
>
> I am involved in a very large project that will be doing a lot of
> talking to Postgres databases (possibly using a a RST middleware). The
> database guys want to use php for all of their stuff, I want to use
> perl for mine. The reasons I want to use perl are:
>
> 1) I have been working in it for 10+ years
> 2) I have 10's of thousands lines of code written (some very complex
> creating pdf's on the fly etc)
>
> Is there a valid reason I should switch to php versus perl (or vice
Yup.
_They_ are probably more than one.
;-)
And unless they are equally (in)experienced in both languages it is
more likely you will have to give way. Given that they are favouring
PHP over Perl I doubt that this will be the case.
> versa they switch to perl)? Portability, ease of maintaining, speed of
> execution, security etc?
>
> Bill H
IMHO the generic database interface of Perl is better suited to
enforce writing a readable and secure access code.
Apart from that I think that both languages can be used to write good
or bad, insecure and inefficent programs. Having savvy people is far
more important than the decision for either language.
Steffen
|
|
Posted by Ben Bullock on May 24, 2008, 9:00 am
Please log in for more thread options On Sat, 24 May 2008 03:32:14 -0700, Bill H wrote:
> Preface: This is not a flame war, please don't turn it into one.
>
> I am involved in a very large project that will be doing a lot of
> talking to Postgres databases (possibly using a a RST middleware). The
> database guys want to use php for all of their stuff, I want to use perl
> for mine. The reasons I want to use perl are:
>
> 1) I have been working in it for 10+ years 2) I have 10's of thousands
> lines of code written (some very complex creating pdf's on the fly etc)
>
> Is there a valid reason I should switch to php versus perl (or vice
> versa they switch to perl)? Portability, ease of maintaining, speed of
> execution, security etc?
The obvious difference is that PHP basically runs inside web servers, whereas
Perl is basically a standalone program. Using PHP with a web server like
Apache is much faster than using Perl CGI scripts, and it's much simpler to
use PHP scripts than it is to set up mod_perl so that the Perl runs at
comparable speeds.
PHP is basically an outgrowth of Perl 4, and a lot of Perl people have pointed
to PHP and said it's not a good language, but I'm not convinced - web
applications built on PHP seem to work well.
If I had to do this job, though, I'd choose to use Perl anyway, because then I
wouldn't have to spend a lot of time learning PHP, and I could use all those
handy CPAN modules.
|
|
Posted by Tad J McClellan on May 24, 2008, 11:46 am
Please log in for more thread options > Preface: This is not a flame war, please don't turn it into one.
That should be possible, since the Big Picture question here holds
true regardless of what languages frame the "versus".
> I am involved in a very large project
So there is like a dozen programmers working on ...
> that will be doing a lot of
> talking to Postgres databases (possibly using a a RST middleware). The
... this DB-accessing very large project?
> database guys want to use php for all of their stuff, I want to use
> perl for mine.
> The reasons I want to use perl are:
>
> 1) I have been working in it for 10+ years
How much experience do the 11 other people have with Perl (not perl)?
How much experience do you have with PHP?
> Is there a valid reason I should switch to php versus perl (or vice
> versa they switch to perl)?
What does your boss say about that?
She/he likely gets way more votes than any of us do...
Having code that can be maintained by only 1 of the people
available vs code that any of 11 people can work on would
be a terribly powerful argument for you to switch.
> Portability, ease of maintaining, speed of
> execution, security etc?
If 11 are experienced with DB work in PHP, and 1 is experienced with
DB work in Perl, then the "they switch to Perl" would win a cost-benefit
analysis only if Perl was at least 11 times better than PHP for this
application.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher0cmdat/"
|
|
Posted by xhoster on May 29, 2008, 1:58 pm
Please log in for more thread options > Preface: This is not a flame war, please don't turn it into one.
>
> I am involved in a very large project that will be doing a lot of
> talking to Postgres databases (possibly using a a RST middleware).
I don't know what RST middleware is. A quick google hasn't enlightened me.
If it is some kind of object-relational mapping, then it might be a pain to
use two different languages to access it.
> The
> database guys want to use php for all of their stuff, I want to use
> perl for mine.
What stuff is "your" stuff? What do "database guys" do? I mean, if they
just do back-up and tuning, who cares what language they use? Is this one
of those pathological cases where the DBAs claim all the interesting things
to be in their domain and all the tedious things to be yours, while you are
claiming the opposite?
> The reasons I want to use perl are:
>
> 1) I have been working in it for 10+ years
Presumably they have been working in their favorite language for a while,
too.
> 2) I have 10's of thousands lines of code written (some very complex
> creating pdf's on the fly etc)
Are these very complex things going to part of the system you are now
working on? Are they going to be the *main* part of it?
> Is there a valid reason I should switch to php versus perl (or vice
> versa they switch to perl)? Portability, ease of maintaining, speed of
> execution, security etc?
Xho
--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.
|
| Similar Threads | Posted | | PERL to mean what 'perldoc perl' says is wrong? (was: Re: perl should be improved and perl6) | April 14, 2008, 11:37 pm |
| FAQ 3.0: What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? | October 31, 2004, 12:03 pm |
| FAQ 3.0 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? | February 2, 2005, 12:03 pm |
| FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? | March 28, 2005, 12:03 am |
| FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? | June 12, 2005, 11:03 am |
| FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? | August 29, 2005, 10:03 pm |
| FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? | October 28, 2005, 10:03 pm |
| FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? | December 25, 2005, 5:03 am |
| FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? | January 8, 2006, 11:03 pm |
| FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? | January 16, 2006, 11:03 pm |
|