|
Posted by: stak
Posted on: 2008-09-10 23:42:54
And this, my friends, is the reason why User-Agent strings (well, user-agent detection, at least) suck so much. It's exactly the same problem we're going to run into in a few years with object detection in Javascript, which also sucks. I have a strong dislike for the people currently working on some of the upcoming specifications for the web, because they seem to be encouraging this sort of stupid behavior with their short-sightedness. I grant that Microsoft couldn't have known the mess it was going to create when it first put "Mozilla" in their User-Agent string, but there's no reason we should keep making the same mistakes over and over.
The creators of the DOM specifications even put in feature-detection support right into the DOM precisely to avoid this sort of problem, but nobody seems to realize that that's what it's there for, and insist upon using inferior alternatives simply to save a few characters in code. Sigh
There comes a time in every person's life when they need to move out of their Mom's basement and get a place of their own in order to grow. The same is true of the Web. We need to stop treating it like a kid and coddling it with ugly hack after ugly hack. It's all grown up, and the mess of tag soup parsing and quirks mode layout needs to be thrown out. Sure, the Web wouldn't be where it is now if browsers hadn't allowed developers to be so sloppy with their HTML, but if we continue to allow that sloppy HTML the Web will never realize its true potential. This is true for any serious project - you put in a lot of quick-and-dirty hacks for prototyping and to get something up and running quickly. However, the dirty hacks eventually need to be thrown out or turned into something more solid and well-defined. Some of the W3C contributors seem to think that the Web is somehow special and exempt from this, but it's not. If the HTML5 spec is ever finished, it may well turn out to be the thing that locks the Web in the basement.
Sorry if my metaphors make no sense (really, they made sense when I was thinking about it) but on the bright side, at least I've found something else I can rant about.
|
|
(c) Kartikaya Gupta, 2004-2025. User comments owned by their respective posters. All rights reserved.
You are accessing this website via IPv4. Consider upgrading to IPv6!
|