Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69019 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69869 invoked from network); 11 Sep 2013 14:50:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2013 14:50:40 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.204 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.204 mail4.serversure.net Linux 2.6 Received: from [217.147.176.204] ([217.147.176.204:37930] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/00-02564-E2380325 for ; Wed, 11 Sep 2013 10:50:24 -0400 Received: (qmail 13581 invoked by uid 89); 11 Sep 2013 14:50:03 -0000 Received: from unknown (HELO linux-dev4.lsces.org.uk) (lester@rainbowdigitalmedia.org.uk@86.186.52.223) by mail4.serversure.net with ESMTPA; 11 Sep 2013 14:50:03 -0000 Message-ID: <5230841B.1080206@lsces.co.uk> Date: Wed, 11 Sep 2013 15:54:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 SeaMonkey/2.20 MIME-Version: 1.0 To: "internals@lists.php.net" References: <1378903588.3917.54.camel@guybrush> <52307CB3.10001@lsces.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Wake up From: lester@lsces.co.uk (Lester Caine) Philip Sturgeon wrote: > On Wed, Sep 11, 2013 at 10:22 AM, Lester Caine wrote: >> Terence Copestake wrote: >>> >>> There's a conflict between people who want to keep PHP >>> simple and accessible and people who want to make PHP into a professional >>> programming tool/environment, complete with all bells and whistles. >> >> >> You see that is part of the problem here. What proportion of the internet is >> powered by the current and older versions of PHP? What is 'so wrong' that >> it's not already a 'professional tool'? I've been using PHP since just >> before PHP5 was finalised and I don't find anything wrong with the code I >> produce using it, and I am making 'professional' websites and services for >> 'professionals'. > > There is nothing "so wrong" that it is not already a professional > tool, obviously, but it can certainly be improved. Adding short array > syntax, short-ternary, array dereferencing, variadics, etc are all > just taking the code that people write and simplifying it, requiring > developers to write less code to achieve the same result. > > Looking at PHP change through the "well it already works so..." > approach is exactly the opposite of what should be done: make small, > careful, reasonable improvements that help developers write less code > so they can spend more time with their families or at the pub. If only that was actually the case! All the 'small, careful, reasonable improvements' that have been made so far have created a difficult to manage upgrade path from code that probably originated in PHP4 days and worked fine in PHP5 up as far as 5.2 but now requires open heart surgery to get it clean and capable in newer ones. All right most of that code should probably be chucked on a bonfire, but it is running peoples live businesses now, and when the infrastructure changes and that stops working they are lost as far as fixing the problems! For a long time I was quite happy simply to write code that was backwards compatible with PHP4 as that was what the bulk of ISP's provided even though I'd never used 4. Nowadays we are getting slated if we aren't using 5.5 when our clients can't even use PHP5.3 yet. And don't say "There is not a problem running old code as long as the server is configured right" ... there are enough holes that give a white screen and invariable at least one of them exists in the sites I still have to convert. And I'm converting to a platform that the rest of you have already abandoned for the next generation. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk