It would be nice to have a DOM sub-forum in the PHP forum, seeing as there's one in the Javascript forum.
My reason for suggesting this is that i have found the PHP DOM library to be immensely powerful and useful, indeed it forms the backbone of all the CMS's that I have written and a lot of other things too.
BUT - I've discovered that each language's implementation of DOM seems to have its own little quirks and nuances that can have you sat there for ages thinking "WTF??" until you figure out that it's a peculiarity of that particular implementation. PHP's implementation is no exception! E.g. you can run into all sorts of memory pollution problems with the DOMNodeList class, if you're not careful (so I've discovered the hard way!). There are various other subtleties that I've learned the hard way too.
To have a PHP of sub-forum would be very helpful.
Last edited by XmisterIS; 02-03-2012 at 10:58 AM..
I don't really see a necessity to have a DOM subform in PHP. DOM is highly used within Javascript itself, but has limit use overall in PHP.
I won't disagree with the power or usefulness of DOM, but there is no comparison between JS and PHP when it comes to the usefulness of the DOM as a whole - PHP has nothing on JS when it comes to the frequency of its use.
A big part of the problem is simply popularity to use. Having a DOM forum won't make DOM any more popular to use, and overall it doesn't appear that DOM is the chosen route to manipulation here (more simplexml than dom). The question then comes why not have a mysql subform for PHP? Why not a PDO? Why not a DateTime, or network handling, or LDAP, etc etc, until you have a subforum for every extension available. This will quickly become more problematic to look through.
A big part of the problem is simply popularity to use. Having a DOM forum won't make DOM any more popular to use, and overall it doesn't appear that DOM is the chosen route to manipulation here (more simplexml than dom). The question then comes why not have a mysql subform for PHP? Why not a PDO? Why not a DateTime, or network handling, or LDAP, etc etc, until you have a subforum for every extension available. This will quickly become more problematic to look through.
Don't we have a MySQL forum? In which you're supposed to ask PHP-MySQL questions.
Don't we have a MySQL forum? In which you're supposed to ask PHP-MySQL questions.
We do, although most PHP based questions typically end up in the PHP forum not the MySQL one.
That wasn't my point though, my point is that we don't want to start jumping subforums to match every extension that PHP has available.
We do, although most PHP based questions typically end up in the PHP forum not the MySQL one.
That wasn't my point though, my point is that we don't want to start jumping subforums to match every extension that PHP has available.