3 ms·
I think about the future of WordPress a lot. Like what would WP look like if it was mostly JS? When I look at all the front-end developments (React etc), it's r
by pknight 12y ago
I think about the future of WordPress a lot. Like what would WP look like if it was mostly JS? When I look at all the front-end developments (React etc), it's really hard to gauge. On one level I'd love to see things become more framework agnostic and flexible. The json api in theory frees up a lot of restrictions in what devs can do with WP running as a backend. Even cooler if we can switch out Mysql with other kinds of databases.
But it's kind of interesting, for all PHP's warts, it has made it so easy to build things, allowing a huge amount of plugins and themes to develop. For all these years, devs didn't need to worry about the latest library, from backbone to angular, from react to mithril etc. It's the stability and ease of access that has been so important to growth.
Now that the web is so javascript oriented it's really compelling to just think about how WP can adapt to it. But a big push toward adopting new methodologies just strips away the number one reason to develop with WordPress: the huge ecosystem that has solutions coded with PHP. And if you are going to create that rift, you might as well start with some other platform.
But it's really hard to pick a winner now, React for example, could easily be overtaken by another lib in a years time. We're unsure how Nodejs is going to develop. The json API's current state is not superfast or fully developed yet.
I sometimes wonder that we're underestimating the advantages of having something stable like PHP continuing to run at least part of the show. For example, I have yet to see any kind of theme (A WP theme or otherwise) coded with some kind of front-end oriented mvc setup that results in a qualitatively superior site experience.