News for hackers. Stuff that matters.
Re:The practicalities of CSS Media Queries, lessons learned by throwaway34 on Friday January 28, 2011 @12:36PM (#2152682)
"user-agent sniffing (long since shown to be a terrible idea)"

Wrong. On mobile the consensus is this is a sad necessity. There are services to automate and abstract this so you aren't manually creating your own UA DB.

Re:The practicalities of CSS Media Queries, lessons learned by powrtoch on Friday January 28, 2011 @02:33PM (#2153179)
It seems like this article makes it clear that it's not really a necessity. FWIW, I've been redirected to mobile sites on several occasions just because my desktop browser is Opera.

Not that this can't be taken care of with a little careful coding, just saying that user-agent sniffing is still troublesome, and separating desktop from mobile can be tricker than expected.

Re:The practicalities of CSS Media Queries, lessons learned by pornel on Friday January 28, 2011 @04:56PM (#2153692)
> Wrong. On mobile the consensus is this is a sad necessity.

Is it still? I think that by now the only browsers that don't support Media Queries are so old and primitive, that they're not getting used anyway (those toys on featurephones that crash on any site other than operamini.com, previous generation BlackBerry that shows progressbar during execution of JavaScript, etc.)

Everything worth using, from Opera Mini to Androids and iPhones supports Media Queries and can swallow few extra KB of markup.