[PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Brent R. Matzelle

I could not help but notice that all DOM XML calls use an
underscore-based convention:

i.e. 
$mynode-append_child($achild);

I am no language lawyer but if you read the DOM Core documentation
(http://www.w3.org/TR/DOM-Level-3-Core/core.html) it suggests a
case-based (no underscore) convention:

i.e.
$mynode-appendChild($achild);

Also, every DOM compliant library that I've looked at uses this same
convention.  Will the case-based convention be used in PHP 4.3.0?  If
not then it should be considered as it seems to be a violation of the
DOM.

Warm regards,

Brent

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread derick

Hello,

can you file a change/feature request for this @ bugs.php.net ?

Derick

On Tue, 14 May 2002, Brent R. Matzelle wrote:

 I could not help but notice that all DOM XML calls use an
 underscore-based convention:
 
 i.e. 
 $mynode-append_child($achild);
 
 I am no language lawyer but if you read the DOM Core documentation
 (http://www.w3.org/TR/DOM-Level-3-Core/core.html) it suggests a
 case-based (no underscore) convention:
 
 i.e.
 $mynode-appendChild($achild);
 
 Also, every DOM compliant library that I've looked at uses this same
 convention.  Will the case-based convention be used in PHP 4.3.0?  If
 not then it should be considered as it seems to be a violation of the
 DOM.
 
 Warm regards,
 
 Brent
 
 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 

---
 Did I help you?   http://www.jdimedia.nl/derick/link.php?url=giftlist
 Frequent ranting: http://www.jdimedia.nl/derick/
---
 PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Markus Fischer

Hi,

not giong to happen. It's a PHP convention to use underscores
to separate words (this was discussed ~ half a year ago
afaik).

- Markus

On Tue, May 14, 2002 at 12:49:50PM -0700, Brent R. Matzelle wrote : 
 I could not help but notice that all DOM XML calls use an
 underscore-based convention:
 
 i.e. 
 $mynode-append_child($achild);
 
 I am no language lawyer but if you read the DOM Core documentation
 (http://www.w3.org/TR/DOM-Level-3-Core/core.html) it suggests a
 case-based (no underscore) convention:
 
 i.e.
 $mynode-appendChild($achild);
 
 Also, every DOM compliant library that I've looked at uses this same
 convention.  Will the case-based convention be used in PHP 4.3.0?  If
 not then it should be considered as it seems to be a violation of the
 DOM.
 
 Warm regards,
 
 Brent
 
 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
-
I mean When in doubt, blame mcrypt is more often right than wrong :)
Always right, never wrong :)
- Two PHP developers who want to remain unnamed

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Brent R. Matzelle

--- Markus Fischer [EMAIL PROTECTED] wrote:
 not giong to happen. It's a PHP convention to use underscores
 to separate words (this was discussed ~ half a year ago
 afaik).

I realize that this is a PHP convention, but I do not think that it
is up to PHP developers to change published coding standards.  How
are users of different programming languages expected to convert? 
'Replace all' is not an acceptable answer.

Brent

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread derick

On Tue, 14 May 2002, Brent R. Matzelle wrote:

 --- Markus Fischer [EMAIL PROTECTED] wrote:
  not giong to happen. It's a PHP convention to use underscores
  to separate words (this was discussed ~ half a year ago
  afaik).
 
 I realize that this is a PHP convention, but I do not think that it
 is up to PHP developers to change published coding standards.  How
 are users of different programming languages expected to convert? 
 'Replace all' is not an acceptable answer.

The same is true for keeping the function names in PHP consistent. It's a 
choice, and IMO we made the correct choice.

Derick

---
 Did I help you?   http://www.jdimedia.nl/derick/link.php?url=giftlist
 Frequent ranting: http://www.jdimedia.nl/derick/
---
 PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Markus Fischer

Hi,

btw, not my personal opinion :) I just wanted to let you know
this was discussed so you can search the archives for it.

Btw, first you said 'w3c convention' now it's a standard?
anyway

- Markus

On Tue, May 14, 2002 at 01:27:40PM -0700, Brent R. Matzelle wrote : 
 --- Markus Fischer [EMAIL PROTECTED] wrote:
  not giong to happen. It's a PHP convention to use underscores
  to separate words (this was discussed ~ half a year ago
  afaik).
 
 I realize that this is a PHP convention, but I do not think that it
 is up to PHP developers to change published coding standards.  How
 are users of different programming languages expected to convert? 
 'Replace all' is not an acceptable answer.
 
 Brent
 
 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
-
I mean When in doubt, blame mcrypt is more often right than wrong :)
Always right, never wrong :)
- Two PHP developers who want to remain unnamed

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread brad lafountain

Why don't we just add alias... so it will be BC and 
so we don't get shunned on by people like that.

 - Brad
--- Markus Fischer [EMAIL PROTECTED] wrote:
 Hi,
 
 btw, not my personal opinion :) I just wanted to let you know
 this was discussed so you can search the archives for it.
 
 Btw, first you said 'w3c convention' now it's a standard?
 anyway
 
 - Markus
 
 On Tue, May 14, 2002 at 01:27:40PM -0700, Brent R. Matzelle wrote : 
  --- Markus Fischer [EMAIL PROTECTED] wrote:
   not giong to happen. It's a PHP convention to use underscores
   to separate words (this was discussed ~ half a year ago
   afaik).
  
  I realize that this is a PHP convention, but I do not think that it
  is up to PHP developers to change published coding standards.  How
  are users of different programming languages expected to convert? 
  'Replace all' is not an acceptable answer.
  
  Brent
  
  __
  Do You Yahoo!?
  LAUNCH - Your Yahoo! Music Experience
  http://launch.yahoo.com
  
  -- 
  PHP Development Mailing List http://www.php.net/
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 -- 
 Please always Cc to me when replying to me on the lists.
 GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
 -
 I mean When in doubt, blame mcrypt is more often right than wrong :)
 Always right, never wrong :)
 - Two PHP developers who want to remain unnamed
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Brent R. Matzelle

--- brad lafountain [EMAIL PROTECTED] wrote:
 Why don't we just add alias... so it will be BC and 
 so we don't get shunned on by people like that.

That would fit the bill nicely.

Brent

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Markus Fischer

Hi,

I fail to see the advante. Is it only that 'it looks like
what the w3c recommends' and 'so users already used to the
api have it easier' or did I miss something else?

- Markus

On Tue, May 14, 2002 at 01:47:22PM -0700, Brent R. Matzelle wrote : 
 --- brad lafountain [EMAIL PROTECTED] wrote:
  Why don't we just add alias... so it will be BC and 
  so we don't get shunned on by people like that.
 
 That would fit the bill nicely.
 
 Brent
 
 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
-
I mean When in doubt, blame mcrypt is more often right than wrong :)
Always right, never wrong :)
- Two PHP developers who want to remain unnamed

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Brent R. Matzelle

--- Markus Fischer [EMAIL PROTECTED] wrote:
 Hi,
 
 btw, not my personal opinion :) I just wanted to let you know
 this was discussed so you can search the archives for it.

Understood ;)

 Btw, first you said 'w3c convention' now it's a standard?
 anyway

Again, I'm no language lawyer, it is officially the W3C Document
Object Model Level 3 Core specification.  

Brent

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread brad lafountain

Yeah thats pretty much it. It does make it eaiser for people using
dom in another lanugage to pick it up in php if it did conform to 
the standard. Expecially how we are trying to conform the functions
to begin with. Instead of having append_child... why not add_child..

- We started conforming to the standard why not go the whole way. -

And with alias we can have the php standard and the w3c standard.

 - Brad
--- Markus Fischer [EMAIL PROTECTED] wrote:
 Hi,
 
 I fail to see the advante. Is it only that 'it looks like
 what the w3c recommends' and 'so users already used to the
 api have it easier' or did I miss something else?
 
 - Markus
 
 On Tue, May 14, 2002 at 01:47:22PM -0700, Brent R. Matzelle wrote : 
  --- brad lafountain [EMAIL PROTECTED] wrote:
   Why don't we just add alias... so it will be BC and 
   so we don't get shunned on by people like that.
  
  That would fit the bill nicely.
  
  Brent
  
  __
  Do You Yahoo!?
  LAUNCH - Your Yahoo! Music Experience
  http://launch.yahoo.com
  
  -- 
  PHP Development Mailing List http://www.php.net/
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 -- 
 Please always Cc to me when replying to me on the lists.
 GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
 -
 I mean When in doubt, blame mcrypt is more often right than wrong :)
 Always right, never wrong :)
 - Two PHP developers who want to remain unnamed
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Christian Stocker

Hi

 Yeah thats pretty much it. It does make it eaiser for people using
 dom in another lanugage to pick it up in php if it did conform to
 the standard. Expecially how we are trying to conform the functions
 to begin with. Instead of having append_child... why not add_child..

'cause appendChild, resp. append_child is the the w3c standard ...

 - We started conforming to the standard why not go the whole way. -

'cause, as said before, it's the php way to seperate words. And i would
much apreciate, if this would be everywhere the same (isset and is_null as
a wonderfull example...)

 And with alias we can have the php standard and the w3c standard.

i don't see a reason for that. it's not that complicated to change
appendChild to append_child in your code. you have to change your code
anyway. and since PHP is not case-sensitive functionname wise, you will
get funny stuff (see ext/gd in all the tutorials, if php is ever going
case sensitiv (is it?), then all those examples are in big trouble :) )

I'm certainly against introducing the non-underscore api-stuff. and BTW,
i didn't found anything on w3.org, which says method names have to be
studly caps (but i just had a quick look). The php-api is more or less
clear in that way, that where w3c suggest an uppercase letter, php makes
an underscore. Therefore it's not that hard to switch between different
languages.

ok. i repeat more or less what others said...

chregu


  - Brad
 --- Markus Fischer [EMAIL PROTECTED] wrote:
  Hi,
 
  I fail to see the advante. Is it only that 'it looks like
  what the w3c recommends' and 'so users already used to the
  api have it easier' or did I miss something else?
 
  - Markus
 
  On Tue, May 14, 2002 at 01:47:22PM -0700, Brent R. Matzelle wrote :
   --- brad lafountain [EMAIL PROTECTED] wrote:
Why don't we just add alias... so it will be BC and
so we don't get shunned on by people like that.
  
   That would fit the bill nicely.
  
   Brent
  
   __
   Do You Yahoo!?
   LAUNCH - Your Yahoo! Music Experience
   http://launch.yahoo.com
  
   --
   PHP Development Mailing List http://www.php.net/
   To unsubscribe, visit: http://www.php.net/unsub.php
 
  --
  Please always Cc to me when replying to me on the lists.
  GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
  -
  I mean When in doubt, blame mcrypt is more often right than wrong :)
  Always right, never wrong :)
  - Two PHP developers who want to remain unnamed
 
  --
  PHP Development Mailing List http://www.php.net/
  To unsubscribe, visit: http://www.php.net/unsub.php
 


 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com



-- 
nam...christian stockeradr...bremgartnerstr. 66, ch-8003 zurich
pho...+41  1 451 6021  www...http://phant.ch/chregu
mob...+41 76 561 8860  [EMAIL PROTECTED]
wor...+41  1 240 5670  gpg...0x5CE1DECB



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread brad lafountain

--- Christian Stocker [EMAIL PROTECTED] wrote:
 Hi
 
  Yeah thats pretty much it. It does make it eaiser for people using
  dom in another lanugage to pick it up in php if it did conform to
  the standard. Expecially how we are trying to conform the functions
  to begin with. Instead of having append_child... why not add_child..
 
 'cause appendChild, resp. append_child is the the w3c standard ...

 Yeah i was saying we are sticking to the standard for function names why not
keep the naming convention too.

 
  - We started conforming to the standard why not go the whole way. -
 
 'cause, as said before, it's the php way to seperate words. And i would
 much apreciate, if this would be everywhere the same (isset and is_null as
 a wonderfull example...)
 
  And with alias we can have the php standard and the w3c standard.
 
 i don't see a reason for that. it's not that complicated to change
 appendChild to append_child in your code. you have to change your code
 anyway. and since PHP is not case-sensitive functionname wise, you will
 get funny stuff (see ext/gd in all the tutorials, if php is ever going
 case sensitiv (is it?), then all those examples are in big trouble :) )

 Not if they use the right case... appendChild vs appendchild the if one day
php goes casesensitve then you will be all set.

 
 I'm certainly against introducing the non-underscore api-stuff. and BTW,
 i didn't found anything on w3.org, which says method names have to be
 studly caps (but i just had a quick look). The php-api is more or less
 clear in that way, that where w3c suggest an uppercase letter, php makes
 an underscore. Therefore it's not that hard to switch between different
 languages.

 Its not a hard switch at all but it still IS a switch. Why force a switch when
you don't have to.

 
 ok. i repeat more or less what others said...
 

 I still don't see a good arugment agains adding alias. I see it as saving us
from the comments like its not w3c standard. People would look down on the
extension becuase it doesn't conform. 

If you only arugment is because its not a php standard. I see that as a weak
argument.


 I really don't understand you guys went thru that extension and made it dom
compliant (functionality wise) and you just won't go one step further and make
alias so the naming convension is standard too.


I personally like _'s too but i still think that adding aliases doesn't hurt
anything.


- Brad

 chregu
 
 
   - Brad
  --- Markus Fischer [EMAIL PROTECTED] wrote:
   Hi,
  
   I fail to see the advante. Is it only that 'it looks like
   what the w3c recommends' and 'so users already used to the
   api have it easier' or did I miss something else?
  
   - Markus
  
   On Tue, May 14, 2002 at 01:47:22PM -0700, Brent R. Matzelle wrote :
--- brad lafountain [EMAIL PROTECTED] wrote:
 Why don't we just add alias... so it will be BC and
 so we don't get shunned on by people like that.
   
That would fit the bill nicely.
   
Brent
   
__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
   
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
  
   --
   Please always Cc to me when replying to me on the lists.
   GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
   -
   I mean When in doubt, blame mcrypt is more often right than wrong :)
   Always right, never wrong :)
   - Two PHP developers who want to remain unnamed
  
   --
   PHP Development Mailing List http://www.php.net/
   To unsubscribe, visit: http://www.php.net/unsub.php
  
 
 
  __
  Do You Yahoo!?
  LAUNCH - Your Yahoo! Music Experience
  http://launch.yahoo.com
 
 
 
 -- 
 nam...christian stockeradr...bremgartnerstr. 66, ch-8003 zurich
 pho...+41  1 451 6021  www...http://phant.ch/chregu
 mob...+41 76 561 8860  [EMAIL PROTECTED]
 wor...+41  1 240 5670  gpg...0x5CE1DECB
 
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php