Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81424 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33352 invoked from network); 30 Jan 2015 12:34:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2015 12:34:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.54 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.54 mail-qg0-f54.google.com Received: from [209.85.192.54] ([209.85.192.54:44260] helo=mail-qg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/81-23158-93A7BC45 for ; Fri, 30 Jan 2015 07:34:01 -0500 Received: by mail-qg0-f54.google.com with SMTP id q108so37872599qgd.13 for ; Fri, 30 Jan 2015 04:33:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=l1HEiPkqJYeuI0qwdS2zXNePNCjpF0nyc0fyc6WaoMY=; b=WDFpmsZ9OzAX2K9RgdstbbOwfDvU8rOWHRnDXrraehIvu194WfDKHvjssSL0m+BZTv cXjEZgzGef+SDRmtPKz/TOEQ3+uigbyS2Fbw+C5MBMB5mHfjhuvGF3nneYy0z+S8u/uI 2E0s3MXWhpM7bed+Br9zvjnwUlL2r5jRojp7pYl63mDu1YGOX7VE0nmBKhKImg+dJ9VS TYAU5wACWUQ8mTERGqeMEm2FOXjjXuMbS8puyYNEPucQHX0vlNZGhfyZhfVOsikvbynr CmOFm65OZKKACaITeFT4UJLMkGGoPI9GjX1AAp+l5zSWZsTzvJioac9JVb84vaGVk/92 Fpmw== X-Received: by 10.140.20.226 with SMTP id 89mr11197493qgj.43.1422621237742; Fri, 30 Jan 2015 04:33:57 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Fri, 30 Jan 2015 04:33:17 -0800 (PST) In-Reply-To: <39.52.31101.2585BC45@pb1.pair.com> References: <54C8D36E.7010803@php.net> <39.52.31101.2585BC45@pb1.pair.com> Date: Fri, 30 Jan 2015 21:33:17 +0900 X-Google-Sender-Auth: J6ObNcPSUzzQckKvP3pOTl6cjJk Message-ID: To: Tony Marston Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c1257e8694b9050dddd189 Subject: Re: [PHP-DEV] [RFC] [VOTE] pecl_http From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c1257e8694b9050dddd189 Content-Type: text/plain; charset=UTF-8 Hi Tony, On Fri, Jan 30, 2015 at 7:08 PM, 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: >> >>> Hi, >>> >>> > > > > Hello, >> >> 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". > We have coding standard. From the CODING_STANDARDS in source. 6. Method names follow the 'studlyCaps' (also referred to as 'bumpy case' or 'camel caps') naming convention, with care taken to minimize the letter count. The initial letter of the name is lowercase, and each letter that starts a new 'word' is capitalized:: Good: 'connect()' 'getData()' 'buildSomeWidget()' Bad: 'get_Data()' 'buildsomewidget' 'getI()' 7. Classes should be given descriptive names. Avoid using abbreviations where possible. Each word in the class name should start with a capital letter, without underscore delimiters (CamelCaps starting with a capital letter). The class name should be prefixed with the name of the 'parent set' (e.g. the name of the extension):: Good: 'Curl' 'FooBar' Bad: 'foobar' 'foo_bar' Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c1257e8694b9050dddd189--