Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2010
    Posts
    293
    Thanks
    63
    Thanked 8 Times in 8 Posts

    Suggestion for new a sub-forum.

    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.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    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.

  • #3
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by Fou-Lu View Post
    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.

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Quote Originally Posted by Apostropartheid View Post
    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.

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by Fou-Lu View Post
    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.
    Yeah, of course I agree, I was just confused =P


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •