-- Matthew Ratzloff <[email protected]> wrote
(on Sunday, 11 July 2010, 10:38 PM -0700):
> Mixed case seems easier, especially when you have two acronyms next to each
> other.  Case in point: Zend_Controller_Request_Http::isXmlHttpRequest().
>
> Is this formatted in acronym case?  Then it should be isXMLHTTPRequest().

Well, in this case, the actual acronym is "XMLHttpRequest()", and would
translate to "isXMLHttpRequest()". But that's beside the point.

> Is this formatted according to its actual formatting in JavaScript?  Then it
> should be isXMLHttpRequest() (see http://www.w3.org/TR/XMLHttpRequest/).

See above.

> Sure, PHP is case insensitive with regard to method names, but Zend_XmlRpc
> would be Zend\XMLRPC, wouldn't it?  Seems awkward.

We have well over 1200 replies to the post at this point, and the
results are overwhelmingly in favor of keeping MixedCase (70% for), so I
wouldn't worry too much about . ;-)


> On Fri, Jul 9, 2010 at 1:07 PM, Matthew Weier O'Phinney <[email protected]>
> wrote:
> 
>     One complaint we've heard often of ZF users is confusion over how
>     acronyms are represented in class names.
> 
>     As an example, many suggest that "Zend_PDF" is more semantically correct
>     and easier to remember than "Zend_Pdf". On the other side of the coin,
>     many developers feel that our MixedCasing or Titlecasing of acronyms is
>     a simple, easily learned rule that makes typing easier.
> 
>     For ZF2, we started converting code to use each acronym's proper casing.
>     However, we're not done yet, and there are good arguments on both sides
>     of the debate.
> 
>     Our team is at a point where we actually think the important thing is to
>     simply have a rule. As such, we're leaving it up to you, our users, to
>     decide.
> 
>     Simply fill out this form:
> 
>        http://short.ie/zf-acrocase
> 
>     We'll close it in a week or so, and use the decision from that form to
>     determine how to proceed. We even promise to publically export the
>     results, in the interest of transparency. :)
> 
>     So, help choose the direction of ZF2 today!
> 
>     --
>     Matthew Weier O'Phinney
>     Project Lead            | [email protected]
>     Zend Framework          | http://framework.zend.com/
>     PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
> 
> 

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

Reply via email to