6

I always thought wordpress was ok, not great not terrible, from a coding perspective. Now every new framework I have worked on makes me see why Wordpress is on 40% of the internet.

Now I love wordpress not because of what it did do, but because of all the really stupid things it managed to avoid doing including: over abstraction, trend chasing, using "new transformative technology" that disappears in 2 years, breaking plugin economy with updates and making devs start over, making everything OOP for the sake of making everything OOP, making adding on a bit of code take multiple files of multiple formats and boiler plate code, boiler plate code, compiling dependencies, composer, twig, laravel, one page applications, react, angular, vue, javascript only stacks (MEAN), not letting you control sql queries, protected/private scopes and design that doesn't let you fix or alter bad code others did, and the list goes on and on.

Wordpress did a lot right, and devs should try learning from it instead of making more problems to solve. Sure it's not elegant, but you known what it does do? Focus on a solving a problem. Then it does. Without inventing new ideas or concepts to inject into the code and create new problems.

And you know what else? Hooks are actually very well implemented in Wordpress. I've seen it done much worse.

Honestly my main gripe with the entire platform is a slow moving to OOP for no reason and the database design should separate post type into different tables, the current design makes it less scalable for large data sets for multiple reasons so I'd fix that.

Comments
  • 3
    My plugins I wrote for Wordpress over 10 years ago still seem to work. This is after a lot of Wordpress updates. I don't do a lot with it these days, but my custom plugins I wrote for myself are still kicking.
  • 1
    not a fan of WP, but doing everything OOP in web developing...
  • 1
    On the other hand, the WordPress the super senior and respected dev we hired some time ago installed explodes every time I press one button. Don't we DARE update something.
    15s of load time. I hate that bullshit.
  • 1
    @c3r38r170 that sounds like too many shitty plugins or too much data for the infrastructure, like I said once the table rows get to a certain size the db design isn't the greatest and you need to start using costly solutions like NDB or implement diff caching layers.

    There is a code profiler plugin that is very good at telling you just what is slowing things down same with query monitor. Often it's a few plugins or few bad queries and then you can address that nothing should be that slow.
  • 1
    @progresshuh Yeah still, what a bunch of crap. If it was good any "senior" idiot could make it work right. Anyways, it's my opinion and thanks for the advice, I may consider it whenever we may have some spare time to waste in this over engineered landing + news page.
Add Comment