Nov 24

Nice WordPress Rant

WordPress’s idea of SQL injection security: addslashes: I found this post while I was in the middle of wrestling with this, exact problem and it was driving me nuts, so I’m sympathetic to this guy’s plight. And he puts it so well.

I’ve decided to launch a whole new category here on wonko.com. I’m calling it Crappy Code. Whenever I come across a really crappy piece of code in an open source application, I’ll write a cantankerous, insult-laden post all about how crappy it is and then, when applicable, I’ll offer up a suggestion for improving said code.

[…] If I had to list all the things I hate about WordPress, I’d probably kill myself instead. But here’s an example of the sorts of things that might be on that list if my suicide attempt were to fail:

[…] Nobody who uses WordPress actually gives a sh*t about how crappy the code is, so it’s insanely popular. Wound: check. Salt: check.

WordPress makes me laugh. It’s so…fun to use; you can get things done really, really quickly; and it’s popular like crazy. But let’s just admit that the WordPress codebase is the stuff of nightmares. Every once in a while, I look at something in there and say…WTF?

WordPress is like that guy you knew in college that was a blast to hang out with, but that did the craziest stuff when he got drunk. You just had to shake your head sometimes, but whenever he called to go to the bar, you never said no.


Comments

by Joseph Scott,   November 25, 2006 12:36 AM  

Looking at WordPress source code is risky at best. It is really, really ugly. But that hasn't stopped it from being successful:

You Don?t Have To Be Pretty To Be Successful

If the guy you linked to was looking for code to make fun of, WordPress will be an endless spring of opportunity.


by Scott Carpenter,   November 25, 2006 9:47 AM  

Holy snide commentary. (Not yours -- his. Your comments were humorous.) I enjoy good snarky comments on occasion but he just came across as petty and annoyingly superior. It's also an old post and the comments point out that this has long been corrected. (So it was claimed. I haven't verified.) :-)

Am I being a WordPress apologist? Maybe. I use it and like it a lot. Haven't dug in to the code that much. One of the nice things about free software of course is that it can be improved on review, and more and more I appreciate constructive feedback rather than sneering put-downs. It's so much easier to tear something down, though.

If it has been corrected for as much as a year now, is it fair for you to post as if this is a current issue? (It should be mentioned, at least, even if you still want to rag on the software.)


by Michel Fortin,   November 25, 2006 10:11 AM  

WordPress code ugly? Just look at what is needed to make a special text formatter (like Markdown) work inside WordPress. Basically, Markdown has to reshape entirely the WordPress text system, a hugly hack if you ask me. Fortunatly, the WordPress is flexible enough for that, but it's just very badly designed in the first place.


by Deane,   November 25, 2006 11:18 AM  

If it has been corrected for as much as a year now, is it fair for you to post as if this is a current issue?

I don't know if it's been corrected or not. It was still a problem for me, which is why I went looking for a solution in the first place.

WordPress essentially implements their own magic quotes, which sucked when PHP did it.



Add Comment


Want to advertise on this site? Contact FM.
Web Hosting Web hosting, dedicated servers and Web design services
Laser Toner Cartridges UK laser toner, toner cartridges, hp toner, lexmark toner, samsung toner, canon, toner, epson toner, oki toner, kyocera toner, xerox toner, remanufactured toner, compatible toner
Direct TV Deals Free 4 room direct tv deals. no equipment to buy. free fast professional direct tv installation. this is the best direct tv deal available anywhere.
SEO Article Learn from the experts with our SEO article.
rope light Shopping with birddog distributing, inc., gives you access to the lowest prices, the best customer service and the quickest delivery times possible.
Laptop AC Adapter We offer genuine factory direct replacement AC adapters.
Direct TV Best satellite TV deals.
Direct TV Deals Direct TV programming deals are varied and include packages containing from 50 channels up to over 250 channels.
8mm film to DVD Retain family memories with the only frame by frame digital restoration service in the United States for your 8mm film to DVD today
Rubber Stamp Shop for custom self-inking stamps, hand stamps, address stamps, label stamps, check endorsement stamps, check deposit stamps, date stamps, pre inks, pocket stamps, ink and much more!