Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Hartmut Holzgraefe
Lukas Smith wrote: Actually I think it is even an advantage because it makes me differentiate procedural code from OO code more easily. that would be an argument for C++ where calls to member functions look exactly like calls to functions from the global scope in PHP the difference becomes rather

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: Sascha Schumann [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 4:53 PM > > On Wed, 3 Dec 2003, Lukas Smith wrote: > > > > From: Sascha Schumann [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, December 03, 2003 4:39 PM > > > > > > The fact that PEAR has a serious problem e

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: Lukas Smith [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 4:46 PM > > From: Derick Rethans [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, December 03, 2003 4:46 PM > > > On Wed, 3 Dec 2003, Lukas Smith wrote: > > > > > > From: Sascha Schumann [mailto:[EMAIL PROTECTED] >

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Sascha Schumann
On Wed, 3 Dec 2003, Lukas Smith wrote: > > From: Sascha Schumann [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, December 03, 2003 4:39 PM > > > > The fact that PEAR has a serious problem extending non studlyCap objects > > is > > > probably something a lot of people in PHP core don't care about. >

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: Derick Rethans [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 4:46 PM > On Wed, 3 Dec 2003, Lukas Smith wrote: > > > > From: Sascha Schumann [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, December 03, 2003 4:39 PM > > > > > > The fact that PEAR has a serious problem ext

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Derick Rethans
On Wed, 3 Dec 2003, Lukas Smith wrote: > > From: Sascha Schumann [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, December 03, 2003 4:39 PM > > > > The fact that PEAR has a serious problem extending non studlyCap objects > > is > > > probably something a lot of people in PHP core don't care about. >

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: Sascha Schumann [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 4:39 PM > > The fact that PEAR has a serious problem extending non studlyCap objects > is > > probably something a lot of people in PHP core don't care about. > > Please elaborate. Well if I extend a clas

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Sascha Schumann
> The fact that PEAR has a serious problem extending non studlyCap objects is > probably something a lot of people in PHP core don't care about. Please elaborate. - Sascha -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Pierre-Alain Joye
On Wed, 3 Dec 2003 16:16:14 +0100 (CET) Sascha Schumann <[EMAIL PROTECTED]> wrote: > > Well, as (hopefully) a last post from me in this thread, the fact is > > the"UglyCaps" is widely used, with PHP and others OO langages. The > > fact is that is somehow a de facto standard and ease our life to >

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: Hartmut Holzgraefe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 4:31 PM > Lukas Smith wrote: > >>Pierre-Alain Joye wrote: > >> > >>>And except StudlyCaps is ugly and foo_bar is modern, any realistic > >>>and objective pros to keep foo_bar? > >> > >>readability > > >

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Hartmut Holzgraefe
Lukas Smith wrote: Pierre-Alain Joye wrote: And except StudlyCaps is ugly and foo_bar is modern, any realistic and objective pros to keep foo_bar? readability I dont find it unreadable. it is not unreadable but it is definetly *less* readble -- Hartmut Holzgraefe <[EMAIL PROTECTED]> -- PHP

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Sascha Schumann
> Do you think this inconsistency is worth it, even if it turns out that most > of our bindings turn out to choose studyCaps? Certainly. And I am pretty sure that many binding authors will understand why uglyCaps are largely inferior in the area of comprehension. > No doubt the non s

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: Sascha Schumann [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 4:16 PM > > Well, as (hopefully) a last post from me in this thread, the fact is the > > "UglyCaps" is widely used, with PHP and others OO langages. The fact > > is that is somehow a de facto standard and ease

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Sascha Schumann
> Well, as (hopefully) a last post from me in this thread, the fact is the > "UglyCaps" is widely used, with PHP and others OO langages. The fact > is that is somehow a de facto standard and ease our life to > bind/port/extend/whatever existing codes/applications/libraries using > php. Look, m

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: Hartmut Holzgraefe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 4:03 PM > Pierre-Alain Joye wrote: > > And except StudlyCaps is ugly and foo_bar is modern, any realistic > > and objective pros to keep foo_bar? > > readability I dont find it unreadable. Anyways this

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Hartmut Holzgraefe
Pierre-Alain Joye wrote: And except StudlyCaps is ugly and foo_bar is modern, any realistic and objective pros to keep foo_bar? readability -- Hartmut Holzgraefe <[EMAIL PROTECTED]> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Pierre-Alain Joye
On Wed, 3 Dec 2003 15:44:52 +0100 (CET) Sascha Schumann <[EMAIL PROTECTED]> wrote: > The point is that uglyCaps are backwards, a hack/workaround > for a missing feature in a language. > > uglyCaps have no inherent advantage which should be > considered by those advocating their wi

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Ulf Wendel
Pierre-Alain Joye wrote: > On Wed, 03 Dec 2003 14:02:00 +0100 > Ulf Wendel <[EMAIL PROTECTED]> wrote: >>Most PHP extension have a functional interface. If some extension will >>become an OO API in the future this API should not differ from the >>functional API. I don't see a good reason why I we sh

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Sascha Schumann
> On Wed, 3 Dec 2003 15:05:19 +0100 (CET) > Sascha Schumann <[EMAIL PROTECTED]> wrote: > > > Fortunately, we can avoid falling into that trap. PHP > > supports underscores, and terminals which cannot display the > > character correctly don't prevail any longer. > > If you consider this

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Hartmut Holzgraefe
Pierre-Alain Joye wrote: OK, then mail to java (for the java binder), microsoft (com binder and w32 ext), libxml (and related tools), w3c (dom and others std), python (python binder), postgres, wxwindows (should come as well soon or later)... teams and ask them to move to the modern times as well ;

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Pierre-Alain Joye
Thanks for the history, always funny :) On Wed, 3 Dec 2003 15:05:19 +0100 (CET) Sascha Schumann <[EMAIL PROTECTED]> wrote: > Fortunately, we can avoid falling into that trap. PHP > supports underscores, and terminals which cannot display the > character correctly don't prevail any l

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Sascha Schumann
Here is more on the history of uglyCaps: http://www.testingcraft.com/cgi-bin/wiki.cgi?StudlyCaps Quote: ``Round about 1978, I remember using a terminal, said to be "a European one", that displayed the underscore character as a backward arrow. Some programming

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Pierre-Alain Joye
On Wed, 03 Dec 2003 14:30:08 +0100 Hartmut Holzgraefe <[EMAIL PROTECTED]> wrote: > One of the reasons that you don't see PHP 3 in use anymore is that > the transition was so easy. Now that we have even more installations > out there and a lot of open projects that run on PHP 4 it is even > more im

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Hartmut Holzgraefe
Pierre-Alain Joye wrote: This BC thingies in PHP5 sound always weird or silly to me (in most cases). Why in the world do we need a major release if on each case we have to take care of php4? One of the reasons that you don't see PHP 3 in use anymore is that the transition was so easy. Now that we h

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Pierre-Alain Joye
Hello, On Wed, 03 Dec 2003 14:02:00 +0100 Ulf Wendel <[EMAIL PROTECTED]> wrote: > Nevertheless I preferr PHP not to use studyCaps for it's native > functions/methods/whatever. It seperates the build-in functionality > nicely from my code. I like the counter and nicely move from PHP classes to

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Ulf Wendel
Pierre-Alain Joye wrote: On Wed, 03 Dec 2003 11:52:35 +0100 Ulf Wendel <[EMAIL PROTECTED]> wrote: obj->php_native_func() obj->myFunc() Quick thought, does that work with overload? See Lukas post. I'm not sure if I understand this. Is there any warranty that overloaded stuff will always follow t

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Hartmut Holzgraefe
Moriyoshi Koizumi wrote: Underscore-delimited identifiers are preferred in Ada and Ruby, while they don't seem to be in Java, Objective C, SmallTalk, C# and ECMAScript. (How about Python...?) i guess i finally identified the original source of studlyCaps: SmallTalk as far as i can tell from the

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Moriyoshi Koizumi
Hartmut Holzgraefe <[EMAIL PROTECTED]> wrote: > PS: can you prove that 99.% figure? i'd believe a value of maybe > 80% but definetly not 99.% ;) Underscore-delimited identifiers are preferred in Ada and Ruby, while they don't seem to be in Java, Objective C, SmallTalk, C# and ECMASc

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: Hartmut Holzgraefe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 12:52 PM > Lukas Smith wrote: > > Aside from that yes it will be a major problem for PEAR if objects don't > > follow studyCaps as this means we will have to either kick our CS or > wrap > > objects instead

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS (fwd)

2003-12-03 Thread Sascha Schumann
On Wed, 3 Dec 2003, Edin Kadribasic wrote: > > On Wednesday, Dec 3, 2003, at 11:33 Europe/Copenhagen, Sascha Schumann > wrote: > > > Heavy -1 on making hardTooTypeAndEvenWorseToReadCaps a > > recommendation for the APIs exposed by PHP. > > Are you suggesting that we do not have a standard

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Hartmut Holzgraefe
Lukas Smith wrote: Aside from that yes it will be a major problem for PEAR if objects don't follow studyCaps as this means we will have to either kick our CS or wrap objects instead of just exending them. i agree that it is way to late now for changing things in PEAR but i still think it was a bad

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Pierre-Alain Joye
On Wed, 03 Dec 2003 11:52:35 +0100 Ulf Wendel <[EMAIL PROTECTED]> wrote: > php_native_func() > myFunc() We are not talking about function names but methods. > or even: > > obj->php_native_func() > obj->myFunc() Quick thought, does that work with overload? See Lukas post. pierre -- PHP Inter

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Ulf Wendel
Sebastian Bergmann wrote: Derick Rethans wrote: -[6] Method names follow the 'studlyCaps' This is insane. It's not. Using underscores for all native PHP functions seperates them nicely from PHP based code, eg. PEAR code. php_native_func() myFunc() or even: obj->php_native_func() obj->myFunc

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS (fwd)

2003-12-03 Thread Edin Kadribasic
On Wednesday, Dec 3, 2003, at 11:33 Europe/Copenhagen, Sascha Schumann wrote: Heavy -1 on making hardTooTypeAndEvenWorseToReadCaps a recommendation for the APIs exposed by PHP. Are you suggesting that we do not have a standard here as Derick is suggesting, or to keep the current PHP codi

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: Hartmut Holzgraefe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 11:48 AM > Pierre-Alain Joye wrote: > > And now I'm wondering why that suddenly becomes ugly and, as pointed > > Sebastion, why PHP should follow different things than 99.% of > > others OO langages. >

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Hartmut Holzgraefe
Pierre-Alain Joye wrote: And now I'm wondering why that suddenly becomes ugly and, as pointed Sebastion, why PHP should follow different things than 99.% of others OO langages. one reason might bee that we do not have case sensitive function names so that it is possible to use whatever "CAPSula

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Moriyoshi Koizumi
Magnus Määttä <[EMAIL PROTECTED]> wrote: > IIRC there was an agreement a few months ago to use studlyCaps after > some lengthy thread.. If so, I see no problem then. I'm just afraid of an implicit and kind of informal agreement off the list. Moriyoshi -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Magnus Määttä
Hi > > As far as I'm concerned, no such agreement that it is a requirement > > was made so far on this list... (correct me if I'm wrong) > > Well, no idea about when we should consider something agreed or not. > However here is the archives: > http://marc.theaimsgroup.com/?l=php-dev&m=10571567170

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS (fwd)

2003-12-03 Thread Sascha Schumann
Heavy -1 on making hardTooTypeAndEvenWorseToReadCaps a recommendation for the APIs exposed by PHP. - Sascha -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Hartmut Holzgraefe
Pierre-Alain Joye wrote: See http://pear.php.net/news/meeting-2003-summary.php. Especially this line: "PHP object-oriented APIs should follow the PEAR coding standards." i don't remember this and even if i did i don't think a PEAR project meeting is able to take any decision on how PHP core develop

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Edin Kadribasic
On Wednesday, Dec 3, 2003, at 11:13 Europe/Copenhagen, Moriyoshi Koizumi wrote: Derick Rethans <[EMAIL PROTECTED]> wrote: On Wed, 3 Dec 2003, Sebastian Bergmann wrote: Derick Rethans wrote: -[6] Method names follow the 'studlyCaps' This is insane. Whether you like it or not, most people wh

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Pierre-Alain Joye
On Wed, 03 Dec 2003 19:13:13 +0900 Moriyoshi Koizumi <[EMAIL PROTECTED]> wrote: > Derick Rethans <[EMAIL PROTECTED]> wrote: > > > On Wed, 3 Dec 2003, Sebastian Bergmann wrote: > > > > > Derick Rethans wrote: > > > > -[6] Method names follow the 'studlyCaps' > > > > > > This is insane. > > > >

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Moriyoshi Koizumi
Derick Rethans <[EMAIL PROTECTED]> wrote: > On Wed, 3 Dec 2003, Sebastian Bergmann wrote: > > > Derick Rethans wrote: > > > -[6] Method names follow the 'studlyCaps' > > > > This is insane. > > > > Whether you like it or not, most people who use programming languages > > that support the pa

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Sebastian Bergmann
Pierre-Alain Joye wrote: > Meeting where you, Sebastian Bergmann, Hartmut Holzgraefe, Jeroen > Houben, Wolfram Kriesing, Jan Lehnardt, George Schlossnagle, > Lukas Smith, Markus Wolff and Jani were present (add those I forgot ;) > ), and all people online via IRC. I was not at this meeting. --

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Pierre-Alain Joye
On Wed, 3 Dec 2003 10:42:33 +0100 (CET) Derick Rethans <[EMAIL PROTECTED]> wrote: > On Wed, 3 Dec 2003, Sebastian Bergmann wrote: > > > Derick Rethans wrote: > > > -[6] Method names follow the 'studlyCaps' > > > > This is insane. > > > > Whether you like it or not, most people who use program

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Derick Rethans
On Wed, 3 Dec 2003, Sebastian Bergmann wrote: > Derick Rethans wrote: > > -[6] Method names follow the 'studlyCaps' > > This is insane. > > Whether you like it or not, most people who use programming languages > that support the paradigm of object-orientation use studlyCaps (or > whatever

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Lukas Smith
> From: admin [mailto:admin] On Behalf Of Sebastian Bergmann > Sent: Wednesday, December 03, 2003 10:36 AM > Derick Rethans wrote: > > -[6] Method names follow the 'studlyCaps' > > This is insane. > > Whether you like it or not, most people who use programming languages > that support the

[PHP-DEV] Re: [PHP-CVS] cvs: php-src / CODING_STANDARDS

2003-12-03 Thread Sebastian Bergmann
Derick Rethans wrote: > -[6] Method names follow the 'studlyCaps' This is insane. Whether you like it or not, most people who use programming languages that support the paradigm of object-orientation use studlyCaps (or whatever you want to call them). I think it is not a good idea to s