r @codinghorror I believe browser feature detection is better than user-agent strings. Check out the WURFL project at sourceforge.

January 23 2010, 6:14pm