r/javascript • u/tbranyen • Nov 01 '11
ie doesn't suck anymore
http://www.youtube.com/watch?v=jBuHVgXeTuA
Co-wrote this IE 10 demo with my coworker @danheberden. Developed entirely on Mac OS X with Chrome 14. When it came to deploying on Windows 8/IE 10: Node.js 0.5 (Windows), Socket.io/WebSockets, canvas performance and Function.prototype.bind all just worked :D!
Finally.
7
u/jezmck Nov 01 '11
Yes it does, since it's not the latest version that we have to deal with.
-9
u/tbranyen Nov 01 '11
Who is we? People who are stuck with deadend web dev jobs that have you spending hours moving a pixel over? I've been there, try and find a way out.
7
Nov 01 '11
We is everyone in a market that still has a major share of users using
legacy browsersMSIE. The feature support of MSIE 10 is meaningless because the biggest share of MSIE users is not using the latest generation(s) of MSIE.The reason people only talk of MSIE 6 to 8 when they say MSIE is that MSIE 9 and 10 neither matter in terms of market share, nor are they bad enough to cause a problem.
There's a difference between a design job with a company that doesn't understand that browsers are different (or a company that provides services to such companies) and a dev job with a company that simply needs its services to work for enough users not to loose too many potential customers.
For most of the companies out there it's simply not an option to rely on the cutting edge of web technologies unless they also provide a feature-complete fallback. And that effectively means extra work to implement functionality you already have.
2
21
u/magenta_placenta Nov 01 '11
I don't know what the big problem with IE is, just do this:
if (document.layers) {
//all your Netscape code goes here
} else if (document.all) {
//all your IE code goes here
}1
2
u/Jonne Nov 01 '11
Whatever happened to layers anyway? Can you still use that in FF?
1
u/itsnotlupus beep boop Nov 01 '11
Nope. They appeared in Netscape 4, and stayed there. By the time Netscape 6 came out, they were gone.
1
Nov 01 '11
Absolute positioning and z-index happened. Layers went the way of all presentational HTML and died with that generation of browsers.
Of course you can't be sure a monster is dead until you've torn off its head, so I'm pretty sure there's still some designer out there crafting layered pages in his trusty Netscape Navigator.
2
0
0
u/tswaters Nov 02 '11
"oh, encountered some browser because it supports X, better compensate for supposed bug" -- this is bad call.
-6
u/Tronus Nov 01 '11
If only it were that simple. Start writing a bit more advanced javascript and you will feel true pain.
And really... Netscape!?!?
9
13
u/scrogu Nov 01 '11
It still sucks. No plans to support webgl. As soon as they regain ground they will go back to proprietary ways.
1
u/tbranyen Nov 01 '11
Well I'm enjoying it while it lasts I guess =)
I totally agree about the WebGL nonsense, but I guess its no different from HTML5 video codec wars.
-3
Nov 01 '11
Actually, the WebGL decision was made on the basis of security, not bias:
2
u/tbranyen Nov 01 '11
Absolutely and I'm sure it has nothing to do with the fact DirectX competes with OpenGL?
7
u/scrogu Nov 01 '11
Bullshit. They always make up some reason why they can't support something that they don't want to support.
The only reason Microsoft has ever embraced standards was in order to subvert, coopt and/or destroy them.
Anyone remember what happened with Java, Fahrenheit and every other technology MS has "cooperated" on?
-1
Nov 01 '11
Did you read the article?
5
u/scrogu Nov 01 '11
yes, I read it months ago when it was new. keep in mind this is from the same company that unleashed ActiveX on the web... something that many companies have yet to recover from.
When they say they "can't" make something secure, they are lying. They will certainly find a way to expose a competing DirectX based web 3d solution and they will provide some compelling sounding argument about why it's more secure.
I am ex-Microsoft btw. Don't drink the Kool-Aid.
2
Nov 02 '11
Except that Microsoft are far from the only people expressing security concerns:
http://en.wikipedia.org/wiki/WebGL#Security
http://www.contextis.com/research/blog/webgl2/
It's not like John Carmack knows what he's talking about, right?
3
u/scrogu Nov 02 '11
The existence of security concerns is not debated. It's just bullshit to believe that Microsoft would actually implement it if not for the current security issues. Microsoft has been trying to kill GL since Direct3D 1.0.
You honestly think they would just roll over and let GL become the new defacto standard?
Microsoft COULD help provide solutions to the security issues if they were serious about an open 3d standard. They will not because they are not.
1
u/holloway Nov 02 '11 edited Nov 02 '11
They offer hardware accelerated 3d graphics in SilverLight which would have the same probelms as WebGL, so their reasoning is specious.
2
u/tswaters Nov 02 '11
Dems strong words coming from the only browser to support probably the biggest hole into your system: ActiveX.
7
u/stinktank Nov 01 '11
One easy deploy and you claim it doesn't suck anymore? Hey, I've got a bridge I'll give you a great price on.
-8
u/tbranyen Nov 01 '11 edited Nov 01 '11
Hey look a comment on Reddit from someone who has literally no idea what he's talking about. Thanks!
edit: Elaborating: The fact it was an easy deploy is the entire reason why I'm stating IE doesn't suck anymore. The WebSocket spec implementation works flawlessly with existing wrappers (this is a pretty big deal considering the history of WebSockets), all ES 5 methods I used worked, all event handling works just like other browsers and performance was comparable.
Am I claiming IE 10 is the greatest thing ever? No. Am I saying it doesn't suck, because it worked flawlessly to execute a demo written in Chrome using next-gen browser technology? Yes.
6
Nov 01 '11
i think you misread what he said.
-5
u/tbranyen Nov 01 '11
mind elaborating then? I'm having trouble reading it any other way.
4
Nov 01 '11
Well, you're talking about IE 10, not IE.
If you're in the unfortunate position of having to support previous versions of IE, then it still sucks, and will continue to suck indefinitely.
So while you're jizzing over some hipster HTML5 widgets, the world has not yet stopped.
-5
u/tbranyen Nov 01 '11
I know this is troll bait, but really...
IE 10 isn't IE? I'm not gonna try and figure out what the hell you're talking about here.
Modern web application development isn't about compromising for older browsers. Many major sites don't support IE 6 at all and many web apps don't support IE at all; it comes down to your audience.
The world has apparently stopped for you, since this isn't new technology at all. It's been around for ages and newer versions of IE now support some really cool APIs. I don't know how short-sighted someone has to be to not understand how this is a good thing.
I'm not a Microsoft evangelist and in fact the reason why I developed this demo on Chrome/OS X is because I absolutely hate IE/Windows from a user experience perspective.
I would have thought /r/javascript would find appreciation in progress, but instead it appears to be a bunch of angsty dead end web developers who are still complaining about IE 6-8.
3
u/tswaters Nov 02 '11
You must realize that public websites that must be accessible can't be using funky things like the latest/greatest HTML5/etc.... That's not to say you can build some pretty cool things with them -- but if your requirements state that it must work for everyone who accesses the page, using these things are out.
So say your "modern web application" is a government application where people log in to, I dunno, do stuff... like legal stuff. Now imagine it doesn't work in older versions of IE -- well you tell people to upgrade, but they're in corporate environments where they can't, or they have financial limitations that keep them in WinXP/IE6, who knows. Well shit, you've got yourself a problem.
In this paradigm, IE, despite making numerous improvements towards web standards in the latest versions, still has those godawful browsers that are still in use today. This really isn't too much of a problem -- you can hack in any sort of "IE-only" stuff with conditional comments or CSS behaviors.
I guess my point is that the Web is a big place filled with lots of people -- because of one project where you get a "hole in one" in that it just works in IE doesn't mean that everyone doesn't still need to deal with all those assholes using IE<9.
3
Nov 01 '11
your experiment does not involve every aspect of developing with IE10, so stating it does not suck is an assumption.
i am not here to throw mud, and i like where MS is heading with the new IE's but they have a bad history of ruining cross-compatibility.
prefixes can be tolerated but transparency hack's, never ever again (shudder)
1
u/upvotes_bot Nov 02 '11
Didn't you mention you used socket.io? I thought it was supposed to support as far back as ie6.
1
u/tbranyen Nov 02 '11
Yup, but this is using WebSockets not the fallbacks. Personally I just prefer the API. Not sure anything else exists that uses the latest draft spec and have a nice API.
1
u/upvotes_bot Nov 02 '11
Have you seen kaazing?
1
u/tbranyen Nov 02 '11
That seems like kind of a rip off tbqh. $6000 for 1000 connections seems like a joke unless I'm missing something :-/
1
u/upvotes_bot Nov 02 '11
I had no idea what their pricing was, I only found out they existed today. Guess I can cross that off my list...
1
2
u/DrHankPym Nov 01 '11
How does Node work with Microsoft? Do they use the same Google V8 Javascript engine, or are they using their own interpreter?
1
u/tbranyen Nov 01 '11
Same V8 interpreter. Its compiled into the binary so everything runs native. Node has had to make a few sacrifices to get Windows compatibility at the moment (like no FD passing), but apparently they are working on getting that stuff back.
16
u/ell0bo Nov 01 '11
No, IE 7 still requires support and IE 8 isn't exactly perfect. No, IE still sucks, it can't outrun its legacy.
4
Nov 01 '11
Agreed the browser is only as good as the worst version you have to support... I still have to make IE6 work because we still get a lot of revenue from people using that stupid browser. Don't get me started on the quirkiness that comes with the compat and document mode combinations in IE7/8/9
4
4
5
u/rjett Nov 01 '11
That's awesome, but IE still sucks because their browser is still tied to a particular version of their OS. Hopefully IE10 will be available for Windows 7 and not just tied to Windows 8.
1
u/checksinthemail Nov 02 '11
Been using IE 10 previews for some months in Windows 7 - why wouldn't they have it for that OS?
1
1
2
u/clone00 Nov 02 '11
Don't worry. Every version that's out since IE6 is going to be supported for like a decade. In 5 years we'll be dealing with something like 20 concurrent versions of IE. meanwhile every other browser EOLs their older versions within months of the subsequent version's release.
0
Nov 02 '11
[deleted]
2
u/clone00 Nov 02 '11
I don't know if I understand your point. As a developer, if a browser publisher stops supporting a browser, then so do I. It doesnt matter if an end user decides to be willfully obstinate.
I think you're suggesting that we need to be in thrall to people who refuse to upgrade. I think THAT is naieve.
1
1
0
Nov 02 '11
Agreed, it's really nice how the stuff that IE 9 and 10 supports, it supports really damn well.
Working on my site, I encounter cross-browser bugs pretty much every week, mostly around the canvas. About 90% of the time it's in Firefox to blame, with Safari, Opera and Chrome making up the rest. I have yet to find a single canvas bug in IE 9.
The performance is also top notch. There are lots of places where Chrome is way faster then anyone else, but there are also plenty of places where it's actually quite slow. As a result it's easy to get good, but mixed, results.
When I test in IE 9, I find my canvas stuff always works to a very smooth and fast standard.
The only thing holding me back is the UI (pretty, but not as functional as Firefox or Chrome) and the lack of plugins. My ultimate browser would be Firefox using Trident (and IE tab doesn't count since it's not fully integrated in the page).
IE 9 is the only browser that works 100% across multiple desktops on Windows!
9
u/semarj Nov 01 '11
Man that is fucking awesome for the 12 people using IE 10.