Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81450 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9833 invoked from network); 30 Jan 2015 19:19:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2015 19:19:41 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.52 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.52 mail-pa0-f52.google.com Received: from [209.85.220.52] ([209.85.220.52:37877] helo=mail-pa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/12-34022-C49DBC45 for ; Fri, 30 Jan 2015 14:19:41 -0500 Received: by mail-pa0-f52.google.com with SMTP id kx10so55707091pab.11 for ; Fri, 30 Jan 2015 11:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=SpqTBLfhuVGLgyqVcr9MrIHkLM4pGx+aCzHxQU9ObEc=; b=uM/30lT9DjnLN5FifmsUx0COAivE3zPbBRjF+kznL51NvQQmyxqKd09R3eLschuTz4 cP4D6Fst/irE3hliJEPmO+stWNPQPT3HjopPEqwqjvAD0CuMe+SaDpYlsJpn3VNW+i8b +hax5+iwRkGzOiw7XqF0F8+W1diA8KIueei9is1dBZjcDbUHBrTSdDu+aWRBt55E2BuR HnOrIrZ9ReiexO347TKfBHDYGc5FbB+exYrkgTFKLVtvnpHIJPZEWDNfc8/lDM+OvrZr 5SSpQCLLFG7y8p4yyowy2rJH8EVY2nrc6kPkFfH9bP6EVWiIbBQufr91p4FueYhDUV/2 bd1Q== X-Received: by 10.66.163.137 with SMTP id yi9mr10972919pab.58.1422645578261; Fri, 30 Jan 2015 11:19:38 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id xx2sm11679388pab.17.2015.01.30.11.19.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jan 2015 11:19:37 -0800 (PST) Message-ID: <54CBD947.7050700@gmail.com> Date: Fri, 30 Jan 2015 11:19:35 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Tony Marston , internals@lists.php.net References: <54C8D36E.7010803@php.net> <5D.52.31101.8585BC45@pb1.pair.com> In-Reply-To: <5D.52.31101.8585BC45@pb1.pair.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [VOTE] pecl_http From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > 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". Tony, the question here is not the style of your personal code base, which is of course you have the full right to choose as you see fit. The question is the style of the code in PHP core codebase, which is maintained by dozens of people and used by millions. For such a code base, consistent style helps both usability and maintainability, and while a competent programmer would be able to read and produce code with any style, having a consistent one would save the effort, which, multiplied by the number of people using and maintaining the code, adds up to a significant amount. I'd say lowercase "http" namespace does look a bit weird to me and I'd expect something like Http or HTTP as a namespace name, but that may be open to debate since we don't have yet a tradition of namespace naming in the core. Once we have such tradition, the extensions would be expected to follow it, at least the core ones. -- Stas Malyshev smalyshev@gmail.com