Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84624 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40012 invoked from network); 12 Mar 2015 09:41:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2015 09:41:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:43602] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/6D-64353-84F51055 for ; Thu, 12 Mar 2015 04:41:28 -0500 Received: (qmail 26258 invoked by uid 89); 12 Mar 2015 09:41:25 -0000 Received: by simscan 1.3.1 ppid: 26251, pid: 26255, t: 0.0823s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.8?) (lester@rainbowdigitalmedia.org.uk@86.189.147.37) by mail4.serversure.net with ESMTPA; 12 Mar 2015 09:41:25 -0000 Message-ID: <55015F44.7070103@lsces.co.uk> Date: Thu, 12 Mar 2015 09:41:24 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: PHP internals References: <54F8BF67.6080600@gmail.com> <848D3C19-DE29-4E5F-9B23-D87D3F4A9365@gmail.com> <54FB45D6.3040803@gmail.com> <54FCD063.4040300@gmail.com> <54FEB910.5000608@lsces.co.uk> <54FF5E39.7000507@lsces.co.uk> <550035F0.10703@gmail.com> <5500F527.1030606@lsces.co.uk> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Consistent function names From: lester@lsces.co.uk (Lester Caine) On 12/03/15 09:21, Arvids Godjuks wrote: > Basically this. > > Yasuo asked me some time ago how do I see the new interface, and to be > frank, I do not see a new procedural api interface at all. We have one > now, and adding a new subset of it looks pointless. It has it's problems > and legacy, you can't really fix it. Maybe some adjustments are in order > to make it more consistent where it can be done. > > I really see only the OO API as a new additional interface. It's part > started by the DateTime, the MySQLi classes and stuff. At this point all > that stuff can be still namespaced, adjusted if needed and continued, > just from the std library first. > I, actually, use _ for function and variable naming and camelCase for > object methods and properties. To be frank, I like it - it visually > clearly separates the code styles and for the most part the PHP code is > written that way (well, the MySQLi has ->num_rows and stuff - i'd change > it to ->numRows and so forth). This is exactly the same point I've come to ... That MySQLi example is exactly what I am talking about. I know Postgres driver has been 'underscored' but it is THAT which is out of sync with the rest of the code base. interbase driver has the same problem, and we will need to bring in fbird_ to replace ibase_ there, but I use ADOdb almost exclusively which has been CamelCase since day one ( all be it with a leading capital ). PDO is camelCase but that has other problems ;) If there has to be any tidy up, like you, I think switching back to loose some underscores is the less painful option. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk