Little things for big minds

Simon notes that Mark’s latest tinkerings are similar to the php.net url forwarding, on which Mark consciously based his code. Neat. I’ve used this sort of technique before, especially on IIS/ASP-based sites where you’ve not got access to modrewrite — in these sorts of environments, a custom 404 handler can work wonders. It’s also how the funky caching concept works. If I were Mark, however, I think I’d have used mod_rewrite for some of the work; it would be rather neat if http://diveintomark/find/search%20terms searched for those terms (as Adrian Holovaty already does, and a mod_rewrite hack is easier there than parsing terms out of the URL in your 404 script. (I’m feeling an attack of “right tool for the right job” here, too, although I’m unclear whether it’s justified.) The strength of the php.net implementation is that it searches the online PHP manual, something that’s rather a challenge to do using only URL rewriting. I turned up on Mark’s recommended reading list, too, so I must be doing something right. All this pales into insignificance, though, behind Mark’s comment that “I hope to eventually achieve web design nirvana, a state in which, if anyone can’t read my site, it’s their own damn fault.” This should be every web developer’s mantra. I’m thinking of having it hacked into the raw stone above my door, so that I see it and remember it every day. If there’s a better summary of how we’re supposed to be doing what we do, I haven’t seen it. ——-

More in the discussion (powered by webmentions)

  • (no mentions, yet.)