Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78646 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59307 invoked from network); 4 Nov 2014 16:25:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Nov 2014 16:25:52 -0000 Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.178 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.216.178 mail-qc0-f178.google.com Received: from [209.85.216.178] ([209.85.216.178:44879] helo=mail-qc0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/F8-06676-F0EF8545 for ; Tue, 04 Nov 2014 11:25:51 -0500 Received: by mail-qc0-f178.google.com with SMTP id b13so12220292qcw.23 for ; Tue, 04 Nov 2014 08:25:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=OLzotb04nGzZ2Q1HlxaDxcdzUgoiRBnnlaUm7Xcwfes=; b=UOablHKNnPJi8oblPj6GPSK29zCCfqRqk/cAfnbrYlPjZ2OkQ1VSQyGEId56lFEBVE iWSa8lsGPgw7KdoUm+3xUodO/7Mfm8Tw7gT/nDnh4jo8baGElJdObOjwL1/7XHvoOMaa RHm8J6W56DaDqtIlSTNuoPXg13WMDEsnInEqfyI5zyQ/+h+YRn+ttWNOlc/z12d4oHZM QS3QIob0eUBfIS3YqC4oUyJw1LGGxmsKsFBHj1r77TDIRU8D95bq8K+U5qPydcQRMHm/ 9DNvNHSfVODvcS09to/9028n8l6vTYvhvaHgKmx6obIIR1e23H76Gql66YnHxar2SBcQ 8bYA== MIME-Version: 1.0 X-Received: by 10.140.84.177 with SMTP id l46mr72588758qgd.100.1415118343301; Tue, 04 Nov 2014 08:25:43 -0800 (PST) Sender: are.you.winning@gmail.com Received: by 10.140.239.194 with HTTP; Tue, 4 Nov 2014 08:25:43 -0800 (PST) In-Reply-To: <5458F9DA.7060308@lsces.co.uk> References: <5458CEAF.7060204@lsces.co.uk> <5458D492.9040207@lsces.co.uk> <5458E306.50006@lsces.co.uk> <5458F9DA.7060308@lsces.co.uk> Date: Tue, 4 Nov 2014 16:25:43 +0000 X-Google-Sender-Auth: eGTELJcUKIZYNZ4X2svoPPjwScE Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c14c242af34b05070aea41 Subject: Re: [PHP-DEV] Debugging code ... From: cw@daverandom.com (Chris Wright) --001a11c14c242af34b05070aea41 Content-Type: text/plain; charset=UTF-8 On 4 November 2014 16:07, Lester Caine wrote: > On 04/11/14 14:51, Kristopher wrote: > > Every IDE I've used has always working nicely with docblock > annotation > > and typing and has provided the facilities people seem to think > should > > be built in to PHP. > > > > You understand you don't have to use these new features, right? You can > > continue using comment-driven DocBlocks and not use any typing. They are > > purely optional features. > That argument falls flat on it's face when primary libraries upgrade to > use 'the new standards' at the expense of compatibility with previous > practices. Keeping compatible versions running just complicates matters > when the target infrastructure is changing daily :( An 18 month release cycle for minors and over a decade since the last major is hardly "daily". You do not need to update the libraries when they start to use the new language features, but if you want to use the new library features, and those features leverage new language features, then you need to update the runtime as well. If you don't want/need the shiny new features, just don't upgrade. PHP is hardly the only ecosystem where this is true... > > To advocate not adding the features simply because you don't want them, > > when they are plenty of other people who do want them and do find a use > > for them, is pretty selfish. > Have I said ANYTHING about not fixing bug such as perhaps making PHP > work with Unicode properly? One man's bugfix is another man's feature. If you want one of the new shiny things you have to live with the other new shiny things that others want (and no-one is making you use any of these other things). > > > It's also pretty arrogant to assume your workflow and setup will work > > for everyone, and that they should just deal with it. > All I am saying is that many of the complaints being made by others that > PHP is missing 'important facilities' has a counter that in many cases > there is no problem if you use a different method of working. > > Some of us do perhaps need to document better the alternative way of > doing things, and I DO think that loading down the core engine with > facilities which are better provided by secondary tools is the wrong > approach. However since PHP has a modular structure, it should also be > possible to leave out components that are not essential to actually run > the code? > This almost precisely describes extensions, we already have this. But you cannot make *language* features (syntax etc) into extensions or it would be chaos and nothing would interoperate with anything. There *has* to be a stable base that everything can rely on. > It is perhaps just making a case for what is needed to improve the > functionality of the engine, and what - like the debuggers - can be kept > as non-essential secondary tools? > Both of these already are non-essential secondary tools. xdebug is an extension, which you do not have to install and isn't even bundled with PHP. phpdbg is an entirely new SAPI which you are free to ignore, none of the existing SAPIs rely on it in order to function, their functionality has not changed, it is a totally separate entry point. Even if we started bundling PHP with xdebug tomorrow, you need not ever use it if you don't want to, since absolutely nobody anywhere would start shipping PHP with xdebug compiled in as a static module, it would remain as a shared extension and you could simply disabled it. Likewise, if annotations existed, you could simply not use them if you didn't want any of the *new* functionality they would provide - they would not stop anything from working. > > -- > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c14c242af34b05070aea41--