Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81478 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7858 invoked from network); 31 Jan 2015 10:19:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2015 10:19:31 -0000 X-Host-Fingerprint: 80.177.120.119 marston-home.demon.co.uk Received: from [80.177.120.119] ([80.177.120.119:3314] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/31-01805-23CACC45 for ; Sat, 31 Jan 2015 05:19:30 -0500 Message-ID: <00.31.01805.23CACC45@pb1.pair.com> To: internals@lists.php.net References: <54C8D36E.7010803@php.net> <39.52.31101.2585BC45@pb1.pair.com> <54CBB0CD.9010707@garfieldtech.com> In-Reply-To: <54CBB0CD.9010707@garfieldtech.com> Date: Sat, 31 Jan 2015 10:18:31 -0000 Lines: 1 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 X-Posted-By: 80.177.120.119 Subject: Re: [PHP-DEV] [RFC] [VOTE] pecl_http From: TonyMarston@hotmail.com ("Tony Marston") "Larry Garfield" wrote in message news:54CBB0CD.9010707@garfieldtech.com... > >On 1/30/15 4:08 AM, Tony Marston wrote: >> ""Pavel Kouril"" wrote in message >> news:CAB6YZuzyMBAa5i3f9NsvebG2B7YJvO4RyVpy-eac78rsOJxdhQ@mail.gmail.com... >>> >>> On Wed, Jan 28, 2015 at 1:17 PM, Michael Wallner wrote: >>> >>> just one observation - would be the name of the classes and namespaces >>> stay the same after merging? I personally find the lowercased >>> namespace name kinda weird, given that most of code written in PHP >>> I've seen is using CamelCase. >> >> Just because that most of the code YOU have seen uses CamelCase does not >> mean that CamelCase is the "standard". I programmed in other languages >> for >> over 20 years before I switched to PHP, and in those languages the >> standard >> was snake_case. That is the standard I still use, and I will object most >> strongly to the notion that I should change the habits of a lifetime just >> to >> suit the personal preferences of a junior programmer. By "junior" I mean >> "years of experience", not "job title". > >Core uses CamelCase class names. The overwhelming majority of the PHP code >I've seen in the wild uses CamelCase for both classes and namespaces. I'm afraid that "code that I have seen" is only a small fraction of all the "code that has been written". I use snake_case simply because it was the standard in those language which I used in the 20 years before switching to PHP. PHP has never enforced any particular naming convention, nor should it. Thus I am free to whatever I please, whether it be snake_case, camelCase, StudlyCaps or whatever. > Other languages certainly have other conventions, but this is PHP. It is not up to the language to dictate coding style or naming conventions, that is entirely the domain of each group of programmers. >This isn't "personal preference of a junior programmer" (which is a rather >flippant way to dismiss a fellow developer you do not know). I have been in the software industry for over 35 years, and I have encountered many different standards, some good, some bad. The standards that I still use today are based on all the better parts from those individual standards. I object most strongly to a programmer who has far less experience than me suddenly telling me that I must change the habits of a lifetime so that my coding style conforms to his personal preferences. Such arrogance! >It's the convention used by most of an industry. How do you know that it "most of the industry"? Snake_case existed for years before camelCase was invented, and is still used by many. It is even evident in PHP itself, so your assertion is just a personal opinion and not a fact. -- Tony Marston