3 ms·
Wordpress is the best example of spaghetti code I've ever seen. You can compare any code you write yourself to it and you'll find your code better. Last year
by emilis_info 18y ago
Wordpress is the best example of spaghetti code I've ever seen.
You can compare any code you write yourself to it and you'll find your code better.
Last year I gave a conference talk at our local PHP web developer conference analyzing technical details of WP, Joomla and Drupal. I found WP a piece of spaghetti, Joomla a bloatware and Drupal somewhat cleaner than the other two and with some interesting ideas.
However if you look at the UI, you have to admit that WordPress really shines there. I haven't yet used anything that easy to publish a blog.
Taking all this into consideration I think the article title is greatly misleading. It really should be "Compojure 1, Wordpress 0". And the value of reading that article for me was zero.
- midnightmonster 18y agoWordpress code is amazingly awful, but Wordpress is also a general-purpose blogging/publishing platform meant to be installed anywhere, be extended by plugins and themes, and serve the needs of many, many people. If you write your own blogging platform that does just what you need without worrying about drop-in installation, plugins, themes, or anyone else, and you don't end up with a "pretty nice reduction in code", you're in sad, sad shape.
- jrockway 18y agoIt is easy to allow plugins, themes, and easy installation without resorting to Wordpress' horrible architecture.
- midnightmonster 18y agoNo kidding. My point was that the line count difference is probably not principally a matter of Wordpress being terrible or PHP being inferior to Clojure, but mainly of having a radically simpler feature set.
- jrockway 18y agoYes, definitely. Now that I think about it, your point is especially relevant in light of the examples the article chooses.