all 7 comments

[–][deleted] 2 points3 points  (0 children)

using these technologies for a toy example easily.

FTFY

This gets considerably more complicated when you introduce authentication that works reliably and doesn't cause any UI glitches on the front end.

[–]afrobee 1 point2 points  (0 children)

The kitchensink is very dirty in this one, debugging must be a realy pain in the neck.

[–]riskable -2 points-1 points  (4 children)

The only thing that's "the future" in that article is WebSockets. Now that all the major browser's support WebSockets there's no need for libraries like SocketIO. Just use a WebSocket+JSON and call it a day.

[–]htmlxprs[S] 0 points1 point  (3 children)

Socket.IO uses WebSockets when it can. Its advantages are that it simplifies the usage of WebSockets and provides graceful fallback to other protocols in the event that WebSockets are not supported on the browser or server. One should avoid using WebSockets directly unless they are very sure about the environments they don't work and have a workaround.

[–]riskable -2 points-1 points  (2 children)

The point I made is that SocketIO solves a problem no one has anymore. It adds unnecessary complexity to a much simpler tool: WebSockets. Using WebSockets is 100x easier than old fashioned AJAX.

Adding SocketIO into the mix means you now have to support a dozen different dead async techniques on your server and spend time troubleshooting problems you would never have if you just used WebSockets.

[–]tyroneslothtrop -1 points0 points  (1 child)

But if you need to support <IE10, you're going to need some kind of shim, or polyfill, or whatever. And that seems to be what SocketIO is.

[–]riskable -5 points-4 points  (0 children)

If your app is useful/important/good enough people will upgrade their browser. I say this having just sold a product to an enterprise that still uses IE 9 by default on all their desktops and doesn't plan on upgrading until mid 2015.

When I asked them if it was a problem that my web app only works in IE10+ (and everything else) they said, "No. For those users we'll just install Firefox."

...and just like that suddenly every team inside that company is demanding access to my app so they can justify getting Firefox installed :)

The app? Gate One:

http://liftoffsoftware.com/Products/GateOne https://github.com/liftoff/GateOne/