Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13490 invoked from network); 30 Jan 2015 19:25:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2015 19:25:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.174 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 74.125.82.174 mail-we0-f174.google.com Received: from [74.125.82.174] ([74.125.82.174:37153] helo=mail-we0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/E2-34022-79ADBC45 for ; Fri, 30 Jan 2015 14:25:12 -0500 Received: by mail-we0-f174.google.com with SMTP id w55so23540590wes.5 for ; Fri, 30 Jan 2015 11:25:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=II34ZakH1Q2BeP8WGKBHmtNXQKP6NA5eBvaRQfV+hD4=; b=KYt8yypcPiODxrBWjNd9nrx/p6wvpE8IVEfMPuzsxAPC1KBxKOJ4hlpXQFmGIGs5xb uIkwH76YWowr4fp/K3F9otWdnINm4AgUxfIansZn6IqDomIcBUVXxgljBrgcniZT9S+0 XRuC/+SzOO4SwsHS6UK+kYSEV90YMBL7IbSJssiaoId3wKFQUInOwsqZSUL/RTdMxeWW c3C15wATYaUvW7vheVkjmHvvWKCAWLHe3mAnreLZPSpHrpxp7QpTkFZ/q8Rjhhqq3pPw nTE8DcBI+JXBUsKO+oaeSCpuaY7zauvqf43LEk4Dgco727O5l63sqQp2I4KAZrylvnfO PCrA== X-Received: by 10.180.85.33 with SMTP id e1mr393734wiz.55.1422645908378; Fri, 30 Jan 2015 11:25:08 -0800 (PST) Received: from [192.168.2.120] (89-104-28-113.customer.bnet.at. [89.104.28.113]) by mx.google.com with ESMTPSA id dc1sm8181697wib.18.2015.01.30.11.25.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jan 2015 11:25:07 -0800 (PST) Sender: Michael Wallner Message-ID: <54CBDA92.4050802@php.net> Date: Fri, 30 Jan 2015 20:25:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: <54C8D36E.7010803@php.net> <5D.52.31101.8585BC45@pb1.pair.com> <54CBD947.7050700@gmail.com> In-Reply-To: <54CBD947.7050700@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [VOTE] pecl_http From: mike@php.net (Michael Wallner) On 30/01/15 20:19, Stanislav Malyshev wrote: > 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. Exactly, and because this is still PHP and only autoloaders care about those cases, the following is perfectly valid code: -- Regards, Mike