Re: PHP sucks!! - was: persistent db connections in PHP

From: "John Smith" <jayzee(dot)smith(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PHP sucks!! - was: persistent db connections in PHP
Date: 2007-06-16 19:38:28
Message-ID: f029597e0706161238w360ecb82ucf89dd14f7c96706@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

guys,
love both tools but php @ 2.5 *billion* google results is far more
popular than postgresql @ 25 million google results. *if* somebody's
gotto adapt it's not php. php does what it does best in a way that
stuffy academics don't get.

On 6/16/07, PFC <lists(at)peufeu(dot)com> wrote:
> "PHP: very loosely typed, does whatever it wants"
yeah php got a life of its own! sure be a lazy programmer and blame
sql injection etc crap on php or try http://www.xdebug.org/ and
others.

bottomline- people who know other tools better gripe because their's
isn't as popular.
jzs

On 6/16/07, Joshua D. Drake <jd(at)commandprompt(dot)com> wrote:
> Raymond O'Donnell wrote:
> > On 16/06/2007 16:46, PFC wrote:
> >
> >> Also note that PHP, being PHP, sucks, and thusly, will not
> >> reconnect persistent connections when they fail. You have to kick it a
> >> bit.
> >
> > I've seen similar negative comments before on this list about PHP, and
> > I'm curious to know what informs them.
>
> This is likely to be a long thread, but I will break it down very simply.
>
> PHP works.
>
> PHP does not work the way "real" programmers want it to.
>
> Everything else comes down to semantic arguments of what is correct and
> what isn't. Most of the arguments will be correct in that:
>
> PHP as a programming language is horrible
> PHP does things that any sane programmer would run from
>
> But go back to my first point:
>
> PHP works.
>
> PHP is easy, I say this as a guy that will code Python over PHP any day
> of the week but, PHP works.
>
> Sincerely,
>
> Joshua D. Drake
> >
> > I use PHP quite a bit, and though I wouldn't claim to be any sort of an
> > expert, I like it a lot: IMHO it's powerful, fast and easy to use. Mind
> > you, I came to PHP from an ASP/VBscript background, so anything would
> > have been an improvement.
> >
> > Having said that, the main gripes I would have with PHP are (i)
> > variables aren't strongly typed, which can bite you unless you're
> > careful, and (ii) you don't have to declare variables before using them,
> > which can also cause trouble - in VBScript you have "option expicit"
> > which forces you to declare your variables; I'd like to see something
> > similar in PHP.
> >
> > Apologies if this is off-topic for this list, but I'm curious as to why
> > others reckon that PHP sucks.....
> >
> > Ray.
> >
> > ---------------------------------------------------------------
> > Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
> > rod(at)iol(dot)ie
> > ---------------------------------------------------------------

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2007-06-16 19:53:38 Re: PHP sucks!! - was: persistent db connections in PHP
Previous Message Tom Allison 2007-06-16 17:56:00 Re: Using the GPU