Behold WordPress, Destroyer of CPUs
codinghorror.com
codinghorror.com
I guess I would rather read an essay about how much caching improves product X than an essay saying that the developer of product X is an idiot for writing a product that needs caching. Both essays have the same factual content, but I admit to bias towards the former, especially from one programmer to another.
For me I just tend to take Jeff's tone with a grain of salt rather than expecting each post to be dispassionate analysis. Jeff simply doesn't vet his material the same way as PG, but we end up with more of it from which occasionally really good observations and discussions result.
The "shoot from the hip" comment was that while Spolsky might go over one of his showcase pieces 30-40 times, Atwood would look at it maybe once or twice while he was writing it and the hit "Publish".
I have a personality like Atwood -- if I'm mad about something, I immediately feel the urge to write a scathing and negative blog entry. Every time I do this, though, I get a lot of negative feedback. So, I try to tone down my personality and stick to instructional entires now, and amazingly I get positive feedback every time. Nobody cares what I think... but if they learn something, then my blog is worth reading.
"Show, don't tell." is what they teach in elementary school. It is a very valuable piece of advice. (In this case, I mean "show why foo is good", not "tell the reader that bar is bad". Criticism and snarkiness breads criticism and snarkiness.)
Wordpress is meant to make online publishing easy for non developers and it has to make sacrifices for flexibility. Wordpress serves most people very well and there are many high traffic sites running it. Surely he will be able to do the same for himself if he chooses to run Wordpress.
Well, I like a lot of what he writes (by a lot, I mean, "a lot of posts every year," not necessarily, "most of his posts.") I'm quite happy his posts aren't dispassionate. Shrug. I guess I'm being remarkably asymmetrical and patently unfair: I want his passion, it's just that this post is a necessary consequence of his style.
And to say that WordPress is not sloppily programmed is to say that you have never actually looked at the source code. I dare you, I double dare you. Wake up and smell the ashes.
If you really want terrible code, take a look at Pivot. That's awful. WP is just, well, spaghetti-ish, I guess, but not terribly so.
55 queries? I see 18, and 20 when logged in. Something's weird there. Admittedly, it used to be quite high (116, nervous chuckle), but nowadays it hovers below WordPress' query count.
I don't know where you're getting that whole admin authentication thing from. Nowhere in the code does it do anything remotely similar to what you said. The cookies simply hold the browsing user's ID and md5ed password (the md5 is the only information on the password that is stored), which is then authenticated. It's not a username and password for the admin area. It's just the information of the user who's logged in. Nothing new.
There's no single "is_admin" check or anything of the sort. There's no "authentication to the admin". It's not an all-powerful section that checks for a single thing before giving you access to every function. The group that the browsing user is associated with must have the proper privileges to perform the various functionality that is checked throughout the administration section.
As for using salts on the md5 encryptions, I don't see anywhere in WordPress's code does that either (I just downloaded the latest copy). I might add it in to 2.0, though. Should be a fairly easy change.
If you want the software to improve (which doesn't exactly seem to be the case), I just think you should either file tickets or confront the developer (me, and a couple contributors in the IRC channel) instead of spouting off misinformation on other sites.
Consider removing the parenthetical remark and adding a period after a statement like this and leaving it there. Simple, powerful, and makes your point:
"If you want the software to improve, I just think you should either file tickets or confront the developer."
You could remove a few more words and make it
"If you want the software to improve, file tickets or confront the developer."
;-)
I didn't say that there's an is_admin thing, just that the password is stored in a cookie, seemingly for the purposes of authentication. Storing a hashed password like that is probably a bad idea, and perhaps even worse is storing the associated user id with it. Logging into the demo and looking at my cookies shows both of these things. This does nothing to prevent session hijacking, at all. In fact it doesn't even make an attempt.
In regards to queries, I should point out this screenshot taken a few minutes ago: http://apgwoz.com/images/chyrp-85.png in which you'll notice, 85 queries, a bit worse than the 55 I saw before. It was probably my mistake for linking to the homepage, which shows 18 queries, rather than an inner page with other content. I apologize for that lack in judgement.
As for wanting the software to improve, you're right--I don't care. It's not solving a problem that hasn't been solved many times before, and aside from looking pretty I don't really see the need for a new blog platform. Just my 2 cents. Good luck in your efforts to release a version 2.0.
EDIT: I wanted to commend you on your sense of style. I really like the Chyrp homepage's design.
Thanks for the design compliment. :) I might be changing it soon though, since white-on-black doesn't really work well for other sections of the site, like the documentation and forums.
Now I'm resolved to install WP-Cache!
When I read he was going to do some web stuff I was wondering if he would use a windows server. I admit I don't keep up on what MS offers in the server side but it seems linux + apache is still a better choice.
On the plus side, he's not pro-Windows in the sense of being an evangelist or anti-something else. He's been working for a consulting business up until now, and there's great money in .Net consultancy, just like there is with Java. It's just a very different world from the LAMP-style web community.
> I admit I don't keep up on what MS offers in the server side but it seems linux + apache is still a better choice.
People publish working websites all the time on Java+whatever and on .Net+Windows, and Microsoft is working to make Windows/IIS a workable platform for PHP. I would personally recommend a LAMP-style stack for someone trying to decide what web technology stack to learn, but for someone who already knows a different stack, it may not be worth the trouble unless you need immense scale.
That said, he does have a point that WP's insistence on making everything dynamic is rather silly.