Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99307 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97786 invoked from network); 1 Jun 2017 09:16:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2017 09:16:21 -0000 X-Host-Fingerprint: 62.31.75.76 76.75-31-62.static.virginmediabusiness.co.uk Received: from [62.31.75.76] ([62.31.75.76:21391] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/72-43873-46BDF295 for ; Thu, 01 Jun 2017 05:16:21 -0400 Message-ID: <51.72.43873.46BDF295@pb1.pair.com> To: internals@lists.php.net References: <9dffe898-e550-c6d6-46bd-86dcf74735ea@fleshgrinder.com> <9652e487-86e7-20b7-ca1f-bd28a94f514b@gmail.com> <86dba466-a764-522b-6990-39fd7668a79c@fleshgrinder.com> In-Reply-To: Date: Thu, 1 Jun 2017 10:16:16 +0100 Lines: 2 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.3564.1216 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216 X-Posted-By: 62.31.75.76 Subject: Re: [PHP-DEV] Class Naming in Core From: TonyMarston@hotmail.com ("Tony Marston") "Rowan Collins" wrote in message news:CEF783BB-8E1F-4A20-9CC6-1364A122BECC@gmail.com... > >On 31 May 2017 10:26:06 BST, Tony Marston wrote: >>wrote in message >>news:86dba466-a764-522b-6990-39fd7668a79c@fleshgrinder.com... >>I should point out that snake_case was the universal standard decades >>before some people switched to CamelCase. > >[citation needed] My first job in computing was with a UNIVAC 1108 mainframe in the 1970s. This used a 6-bit character instead of an 8-bit byte, which meant that it could support upper case characters, but not lower case. Where a name was comprised of several words an underscore separator was used, as in "end_of_file". >Lisp, for instance, uses hyphens to separate words, and has don't since the >1950s. > >> That was only because some software could >>not handle long names, but could handle both upper and lower case, so >>an upper case character was used instead of an underscore. > >[citation needed] Try reading https://en.wikipedia.org/wiki/Naming_convention_(programming)#Length_of_identifiers >I'm sorry, but this smells of folklore and guesswork to me. Both >underscores and mixed case are workarounds for the inability to include >spaces in identifiers, and have their pros and cons, most of which these >days come down to opinions on aesthetics. Some studies have shown that that most people find it easier to read compound names which use the underscore separator. Look at the following: https://en.wikipedia.org/wiki/Camel_case#Readability_studies https://en.wikipedia.org/wiki/Snake_case (first paragraph) This is not guesswork on my part, it is a documented fact. -- Tony Marston