- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Hm...would an Asus Transformer Book be a good replacement for my Chromebook?
Oh, wait...I can't read their site using my Chromebook.
Admin
Admin
Admin
That's the real WTF. Plus the empty ifs. The real real WTF is the discussion about to do or not to do browser sniffing to reach.. nothing :)
Admin
[quote user="Ken"][quote user="F"] Then, we build a separate network for nerds only. It has to be hard to use -- hard to connect, hard to configure, hard to navigate. Hard enough that the marketdroids, bleeding heart nincompoops, politicians and whatnot can never see what's there.
Only then can we have our freedoms back. We can do it. We did it the first time. Our only mistake was inviting the gutter snipes to come play in our kingdom.[/quote]
Sounds to me what you are describing is the good old BBS systems. Example: http://www.telnetbbsguide.com/
Admin
I want the days of FrontPage back... best sites ever!
Admin
That's too bad on numerous levels. I'm using a transformer pad right now & it's awesome! It's not Windows 8 based, it's Jellybean flavor. So it's bad for Asus that they're not doing a good job representing themselves.
I would recommend looking beyond their website though.
Admin
That reminds me of the sidebar article "The undead Microsoft account", but the comparison isn't exact. A Microsoft page worked in Spanish but not in English, but the Spanish alphabet overlaps a lot with English, part of Microsoft's home country actually uses Spanish. Also I think they said the page displayed in Microsoft's own language (English), even though its functions didn't operate properly in English.
Admin
The SOLE instance in which it is EVER OK to sniff the browser is to intentionally detect a specific, non-functioning browser version.
The problem with "detecting IE 6/7," like so many morons keep vomiting forth, is that their piece of shit, poorly written "detection" breaks IE8, 9, and 10, despite each of them working fine for the same case.
Admin
Personally, I'd choose to just block all IE versions (or at least not actively support them) on principle of not wanting to have to deal with supporting any version of it, given the choice. I wish all devs would do that, or at least refuse to support IE below 8. How'd that go.. 90% of web dev work is working around problems in IE.
Admin
WTFs:
You sense it's sincere, an earnest attempt to ape halfway-competent code, and there's a slightly endearing quality in its abject failure. Very slightly. Most impressive is that, due to the complete lack of consistency littering the code is that clearly several eyes have seen this code.
Admin
Btw, the W3C should mark Navigator as obsolute. Javascripts must check if some property/method is null instead if using browser detection.
For CSS browser detection can be justified because the files are static and may need workaround for some version, but can add requirement that if browser specific tag is used, fallback must be specified.
Admin
How can anyone know about the javascript module pattern, but not know the difference between local and global variables? Why should even bother wrapping your code in an anonymous function if you use global variables anyway?
BTW: The comment on the first line made my day!
Admin
And both of those statements are true: Except that no one went out and deliberately designed U.S. roads to not carry foreign cars or vice-versa.
But that is what these companies are doing.
"Your iPhone does QuickTime: If you can't view a site, be a good serf and tell the site to change to QuickTime."
"Your Android is now a second class citizen because we decided we don't want to support the Flash used in bazillions of web sites, in that environment."
"You can watch free videos on our site, but if you watch a video from YouTube, we'll soak you for an exorbitant data fee."
"You are MY serfs!!!! How could you be so disloyal as to want to visit a site I didn't approve? Or use an app I didn't approve? Or use my app on a device I didn't sell you? I made your device to sell my apps and my apps to sell my device and both for the web I approve of, and if you want to use them in any other combination or for any purpose I didn't think of, BOO HOO TOO BAD."
Down with feudal web!
Admin
TRWTF is client-side rather than server-side browser sniffing.
Another TRWTF is "ASUS recommends Windows 8".
Admin
The browser is this core
Admin
Scratch the function and just add the plain <link...>.
Nobody noticed yet how both legs of the if statement are supposed to do the same?
Admin
TRWTF is these pussies saying they can't make a website look the same across all browsers/platforms. HTML is for markup, CSS is for consistency. Either figure it out or move on and find something your good at.
Regarding the code in the article, what can I say. A) Don't use JavaScript to load your boilerplate CSS and B) Browser sniffing? Really? Didn't we stop that well over ten years ago when we decide that feature sniffing was the way to go and then left it up to libraries like jQuery to do. That is some downright embarrassing code right there.
Admin
Most IE incompatibilities can be fixed by using conditional comments to include a stylesheet for IE. While still ugly, it is much more elegant than looking at the user agent string. No knowing what will happen to it in newer versions. And if you really, really must insist you can also include a script with conditional comments.
Admin
The real WTF is that the actual error is just a missing "var webMode", but people go on and on about browser sniffing or whatnot... The other real WTF is that the code does not in fact implement any differences at all for any of the browsers and cases, it always does exactly the same in the end, if it works. They could have included the stylesheet directly, so all this js remains just a big No-Op that happens to break badly.
Admin
Admin
"Google瀏覽器是用這核心" ("Google Chrome is this core"?) seems to derive from demo.tc/Post/366
Admin
Hey, you didn't mention that the second MENU button blinks!
Admin
That is/was a troll and you bite like fool.
Admin
Admin
While they're at it, W3C should tell folks in the Middle East to quit killing each other.
Admin
Admin
The real wtf is the posting about the asus wtf is rendering horribly on my iPad 2... It sizes so the whole posting fits vertically in landscape mode, which makes it about 3" wide and completely un-viewable and un-readable
Admin
CSS3 now lets you use conditional reasoning in your stylesheets to dynamically adjust styles by a number of different factors that are independent of browser.
Obviously certain rules would still be restricted by browser support though. If we as developers are lucky, IE will either die soon or it'll have full support for this before WE die...
Admin
I contacted the Asus support line and explained to them what was going on (including a link to this article and my own screenshot for their records), and they fixed it rather quickly.
The fix? Adding a "webMode = "PC";" line prior to the IF statements.
Admin
And now they've kept the webMode and all the browser sniffing... and removed the conditional that checks webMode. So now the site breaks if you block JavaScript, because you need that to be dynamic and append a stylesheet to <head>.
Is the fix the TRWTF?
Admin
Wow, looks fantastic! My time in college wasn't interesting, so I don't miss it. My teachers never gave me good grades despite the amount of time I spent on my tasks, so I came to professional essay writing services where experienced writers can write for me. I believe it is the finest approach to save time, and because of them, I was able to concentrate on duties that were more important.
Addendum 2022-10-25 13:59: Wow, looks fantastic! My time in college wasn't interesting, so I don't miss it. My teachers never gave me good grades despite the amount of time I spent on my tasks, so I came to professional essay writing services where experienced writers can write for me. I believe it is the finest approach to save time, and because of them, I was able to concentrate on duties that were more important.