Re: PHP sucks!! - was: persistent db connections in PHP - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: PHP sucks!! - was: persistent db connections in PHP
Date
Msg-id 467418DB.8070904@commandprompt.com
Whole thread Raw
In response to PHP sucks!! - was: persistent db connections in PHP  (Raymond O'Donnell <rod@iol.ie>)
Responses Re: PHP sucks!! - was: persistent db connections in PHP
List pgsql-general
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@iol.ie
> ---------------------------------------------------------------
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org/
>


--

       === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
              http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


pgsql-general by date:

Previous
From: Ottavio Campana
Date:
Subject: about cursors
Next
From: Tom Lane
Date:
Subject: Re: about cursors