Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:49750 php.internals:49751 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76821 invoked from network); 17 Sep 2010 13:17:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Sep 2010 13:17:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=listas@rafaeldohms.com.br; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=listas@rafaeldohms.com.br; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rafaeldohms.com.br from 209.85.212.42 cause and error) X-PHP-List-Original-Sender: listas@rafaeldohms.com.br X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:35890] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/51-03800-27A639C4 for ; Fri, 17 Sep 2010 09:17:40 -0400 Received: by vws18 with SMTP id 18so1584497vws.29 for ; Fri, 17 Sep 2010 06:17:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.127.101 with SMTP id f37mr2520313vcs.262.1284729456369; Fri, 17 Sep 2010 06:17:36 -0700 (PDT) Received: by 10.220.72.132 with HTTP; Fri, 17 Sep 2010 06:17:06 -0700 (PDT) In-Reply-To: <12df042bd98b449afa15c788b9083e51@localhost> References: <12df042bd98b449afa15c788b9083e51@localhost> Date: Fri, 17 Sep 2010 10:17:06 -0300 Message-ID: To: Christian Kaps Cc: RQuadling@googlemail.com, PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] On how a little knowledge is completely useless. From: listas@rafaeldohms.com.br (Rafael Dohms) On Fri, Sep 17, 2010 at 6:28 AM, Christian Kaps wrote: > On Fri, 17 Sep 2010 10:02:10 +0100, Richard Quadling > wrote: >> One thing that did come to mind is if we ignore all the issues and >> complexities of actually implementing annotations, are annotations >> useful to a significant number of userland developers. On the surface, >> (and this is probably where I'm going wrong), it would seem to only >> really be of use to framework developers, and whilst there are at >> least 2.5 frameworks per developer, the vast majority of userland >> developers are not framework developers. > > This isn't right. At a first glance, yes it looks that only framework > developers can have a benefit from annotations in the core. But the > annotations extending the API of a framework so that all developers > which using this frameworks have a great benefit of them. > > Lets take as dependency injection as example. If the framework > implements this concept than the user of the framework make the usage of > this. Or the bean validation framework. This is only for the framework > users. > I agree with Christian here, something that is "for framework developers" benefits all of the userland users that use that framework. So we are not looking at the minority of framework developers but at the majority of framework users. So i think the point of "is there use for annotations" is mute, yes there is and we don;t see more examples cause we never had it. How often did anyone suggest creating a state machine in the ZF Controller before we had goto available? once it became available we started finding uses for it. So i'm pretty sure one Annotations exist, more and more people will get familiar with it and find new ways to use it in their mindset. -- Rafael Dohms PHP Evangelist and Community Leader http://www.rafaeldohms.com.br http://www.phpsp.org.br