Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64691 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41833 invoked from network); 8 Jan 2013 14:28:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2013 14:28:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.172 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.220.172 mail-vc0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:56929] helo=mail-vc0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/7B-16636-10D2CE05 for ; Tue, 08 Jan 2013 09:28:17 -0500 Received: by mail-vc0-f172.google.com with SMTP id fw7so424439vcb.31 for ; Tue, 08 Jan 2013 06:28:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=oPzfVQeJbWQPmxA4HQWbAtshy1fDzD/RnrCJpXMoPGc=; b=N5Yrec4UpQB0pcBfMDdP1CuQcnSAnvqqInxb1h4ponA1DNcFwuI3wskx91s0ghxnNT HUuFSrsICDIo5TJJ5ptHmOEPRDZtiRz1N1N1FYKPPK9CuLzTyUOdezb9w/rdtWV0iev/ eA8ap+x8+oCIEYY8gZVAykAaef+OKECByVzM2M/OZyfVKEk77BPGFH3c/YeVEUDtD5Bt E4CgVL9k5Y0QZgoJKEIriU8QJUobMVJVesgSQr2w72Nlq4nJM4BE9W3MqRdpY+Ce5v33 0XQP4BEtMshqCx7THoGX4g8SyXgcR5pKFSV6Cbll8kEHEfgIAPLnpN/DWBlBR/6M1KF5 U2/w== Received: by 10.58.34.4 with SMTP id v4mr75265284vei.57.1357655294756; Tue, 08 Jan 2013 06:28:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.118.52 with HTTP; Tue, 8 Jan 2013 06:27:54 -0800 (PST) In-Reply-To: <50EC2BB4.7000503@lsces.co.uk> References: <50EC2BB4.7000503@lsces.co.uk> Date: Tue, 8 Jan 2013 15:27:54 +0100 Message-ID: To: Lester Caine Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e011840c092463b04d2c7c1a9 Subject: Re: [PHP-DEV] 'Documentation' From: ocramius@gmail.com (Marco Pivetta) --089e011840c092463b04d2c7c1a9 Content-Type: text/plain; charset=UTF-8 Heya, Actually, annotations became a form of configuration, very powerful when dealing with AOP and metadata. Very useful when your classes are tightly coupled with config. If you never came to use them or never felt the need to use them, fine. But I wouldn't call it "further complexity without a real need" :) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 8 January 2013 15:22, Lester Caine wrote: > Having been using 'docblock' elements to document classes in PHP for many > years, their use by PHPEclipse and PDE to provide type-hinting and via > phpdocumentor to build developer documentation for classes, I simply > haven't seen any need for some of the more recent developments. > > Reflection/Annotations are just another way of 'documenting' classes - > aren't they? It's not a level of complexity that I have seen a need for, in > the same way that 'Accessors' just seem to be further complexity without a > real need for many users. > > By using established practices and developing them as extensions that can > be disabled if not required, then we can all work with the level of > complexity that we are comfortable with? 'docblock' comments make the code > readable, and can be stripped in much the same way as javascript is > 'packed' for running code, but using the same standard as the basis for > other extensions information that can be parsed/compiled as required does > have some sort of logic? The information required is on the whole the same > for the IDE and documentation and currently a large swath of code already > has all of the core comments already? Surely the starting point is to > ensure that the basic docblock standards work with all of the 'new' > features, and then everything else builds on top of that? > > -- > 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 > > --089e011840c092463b04d2c7c1a9--