October 15th, 2020 at 5:04 PM
Just took a look at the code. They aren't even using a template engine... The HTML is straight up embedded right in the PHP files. That's kinda a bad thing to do.
And yea, Wordpress is an absolute pain in the a** to code for. I'm not a huge fan of overusing frameworks and all sorts of other stuff, although I suppose it makes sense for Wordpress. In general it just adds a learning curve to try to figure out the software when things could easily be done a more straightforward way.
MyBB, for example, puts every page in its own .php file and puts all auxilliary initialization into a global.php file that's included by every single page. So each page ONLY needs the code that pertains to that page, and nothing else. There are a ton of PHP files on the forum root directory (memberlist.php, member.php, index.php, forumlist.php, and so forth), but it's very easy a developer to see the file and immediately know what it does. Sadly, code isn't written this way anymore. These days everything is just buried deep into several directories of libraries and complex include paths, and the controllers are obscure and make it impossible to figure out what page corresponds to what file/function/include/whatever.
And yea, Wordpress is an absolute pain in the a** to code for. I'm not a huge fan of overusing frameworks and all sorts of other stuff, although I suppose it makes sense for Wordpress. In general it just adds a learning curve to try to figure out the software when things could easily be done a more straightforward way.
MyBB, for example, puts every page in its own .php file and puts all auxilliary initialization into a global.php file that's included by every single page. So each page ONLY needs the code that pertains to that page, and nothing else. There are a ton of PHP files on the forum root directory (memberlist.php, member.php, index.php, forumlist.php, and so forth), but it's very easy a developer to see the file and immediately know what it does. Sadly, code isn't written this way anymore. These days everything is just buried deep into several directories of libraries and complex include paths, and the controllers are obscure and make it impossible to figure out what page corresponds to what file/function/include/whatever.