News for hackers. Stuff that matters.
Re:Myspace previews complete redesign by notatoad on Monday September 24, 2012 @06:53PM (#4567497)
Opera doesn't support websockets. I'm sure some socket.IO fans will tell me that's not a big deal, but it kind of is. modern browsers support websockets.

and i know, this demo doesn't use it and will work fine in opera if you spoof the UA, but it's a lot easier to develop if you pick a feature set you're going to support, and skim out any browsers that don't support that feature set.

Re:Myspace previews complete redesign by lazyjones on Monday September 24, 2012 @07:21PM (#4567627)
Excuses, excuses ... Detecting required features by browser identification is not only so 90's, it's downright ridiculous.

All it takes to detect websockets is:

if ('WebSocket' in window) { /* Web Sockets supported / } else { / Web Sockets not supported */ }

Ironically, this was taken from:

http://dev.opera.com/articles/view/introducing-web-sockets/

Also, every web developer with half a brain can use https://github.com/gimite/web-socket-js instead of locking out users unnecessarily by matching the User-Agent.

Re:Myspace previews complete redesign by notatoad on Monday September 24, 2012 @07:33PM (#4567686)
It's not about detecting features. It's about testing: When you're developing a web app, each new browser you choose to support increases your testing time: starting out developing for chrome, adding safari support usually is just a formality. adding firefox support means a couple extra hours of testing, but everything usually works. adding opera support means your tests are going to start failing, and a bunch more work.

I'm picking on websockets because that's what's been annoying me at work lately, but it's just an example. the myspace demo doesn't even use websockets, it's totally irrelevant, but websocket support is a good cursory indication of whether or not it is a modern browser, and therefore how much development time will be added by officially supporting it.

Re:Myspace previews complete redesign by akldfgj on Monday September 24, 2012 @08:37PM (#4567887)
"Hey friend, it looks like you are using Opera. Beware, pal, that we don't go to the opera down here on the ranch, so there may be rough-riding ahead! Try one of these nifty browsers buddy, or sally forth into the unknown. OK, pardner?"
Re:Myspace previews complete redesign by __abc on Monday September 24, 2012 @09:09PM (#4567971)
You can put all the disclaimers you want before a use and they will "venture forth into the unknown". However, they will ignore (if they even read/understood it) your warning and then bury you in support tickets, complain loudly to their friends, and leave you with a mess to deal with and no real clean/easy way out.
Re:Myspace previews complete redesign by pjscott on Tuesday September 25, 2012 @12:12AM (#4568530)
And lest anybody say it won't be that bad, yes it will be that bad. There are some remarkably vitriolic people on the internet.
Re:Myspace previews complete redesign by nholland on Monday September 24, 2012 @11:25PM (#4568401)
I second this... users rarely read anything & remember even less. If you let them in, then they expect it to work. Its unfortunate for Opera, but we're doing the same for our beta launch.
Re:Myspace previews complete redesign by jarek on Tuesday September 25, 2012 @07:50PM (#4573412)
> then bury you in support tickets

After all, Myspace has a commonly-used bug reporting functionality.

> complain loudly to their friends

Because they won't complain about being locked out?

Re:Myspace previews complete redesign by mburns on Monday September 24, 2012 @08:54PM (#4567935)
This is a preview. Complain if they launch publicly like this, otherwise, cut them some slack.
Re:Myspace previews complete redesign by frozenport on Monday September 24, 2012 @10:17PM (#4568177)
IT WILL BE TOO LATE IF WE COMPLAIN WHEN THEY LAUNCH PUBLICLY.
Re:Myspace previews complete redesign by rauljara on Monday September 24, 2012 @07:26PM (#4567651)
I agree with you that opera should support web sprockets, and I sympathize with web developers making the decision to develop for new technology and browsers that don't support it be damned. But the actual message myspace displays is pretty needlessly snarky and stupidly insulting. I also have zero faith they'll be able to update their browser detection script often enough to avoid looking like dinosaurs themselves from time to time.
Re:Myspace previews complete redesign by khet on Tuesday September 25, 2012 @01:55AM (#4568851)
It takes character and guts to stand up for something. I think MySpace can be credited for that. The snark-iness was probably meant more for ie6-7 users than Opera users.
Re:Myspace previews complete redesign by jarek on Tuesday September 25, 2012 @02:57AM (#4569027)
> It takes character and guts to stand up for something.

What does showing a message "Our superpowers have detected you're using an outdated browser. That must mean: a - You don't use the Internet very often. b - You're at your parents' place on the PC they bought in 1996. c - You work for the government or a big corporation." to users using a browser released in the past month stand up for, other than ignorance?

Re:Myspace previews complete redesign by esrauch on Tuesday September 25, 2012 @07:21PM (#4573304)
Doesn't it seem far more likely to be indifference to a negligible market share than ignorance of Opera's existence? It's not worth their money to spend any amount of time making a custom error for "Your browser is new, but we don't support it anyway" separate from "Your browser is old and we don't support it" when 99.9% of the people seeing the message are in the latter category.
Re:Myspace previews complete redesign by jarek on Tuesday September 25, 2012 @07:47PM (#4573402)
I was referring specifically to khet's statement I quoted. What is Myspace "standing up for" here?
Re:Myspace previews complete redesign by tripzilch on Saturday September 29, 2012 @11:44AM (#4589876)
Maybe they meant to say "outdated or foreign browser" and "d. You're a freedom-hating socialist commie", seeing as it's the only browser not developed in the US? ;-)
Re:Myspace previews complete redesign by prodigal_erik on Tuesday September 25, 2012 @02:03AM (#4568884)
Demanding conformity from human beings (how dare you choose a different tool?) is the opposite of character, though doing it this brazenly does take guts.
Re:Myspace previews complete redesign by Tomis02 on Tuesday September 25, 2012 @11:32AM (#4570876)
Opera does support web sockets: opera:config#UserPrefs|EnableWebSockets

They are not enabled by default, that's all. So it's not just that the message is snarky and insulting, it reflects ignorance as well.

Re:Myspace previews complete redesign by notatoad on Tuesday September 25, 2012 @06:25PM (#4573032)
speaking of reflecting ignorance: thinking that disabled-by-default browser settings count as support.
Re:Myspace previews complete redesign by gcr on Friday September 28, 2012 @03:03PM (#4587235)
No reason to be snarky. Opera chose to disable websockets because of security flaws; see http://www.webmonkey.com/2010/12/security-flaws-force-firefo...
Re:Myspace previews complete redesign by csours on Monday September 24, 2012 @07:10PM (#4567574)
Or you could just use the features you want to use and try to fail gracefully when you can't. (Old IE could be a special case, as it is solid chunk of FUBAR.)
Re:Myspace previews complete redesign by notatoad on Monday September 24, 2012 @07:14PM (#4567591)
Sure, you could do that if you had unlimited developer time and people using old browsers are an important market. but that isn't always reality, you've got to choose where to focus your efforts.
Re:Myspace previews complete redesign by ricardobeat on Monday September 24, 2012 @08:23PM (#4567843)
No, you don't need unlimited developer time to do feature detection. It's just good practice, after it's ingrained it doesn't take any more time than not doing it.
Re:Myspace previews complete redesign by __abc on Monday September 24, 2012 @09:11PM (#4567980)
Don't mix "development cost" with "overall support cost".

Overall support will include specific feature testing, regression testing, and user testing. Additionally, support tickets may be opened and introduce support costs in ticket management, escalation, and assessment.

Re:Myspace previews complete redesign by ricardobeat on Monday September 24, 2012 @10:58PM (#4568317)
Don't provide any extra support? "Your browser is not supported/you are on your own" is much better than denying access.

Eventually people will start spoofing just to get in, and then you have a much worse problem in your hands. You know the Opera story. There is no excuse to block user agents unless it's commercial software with support contracts on the line.

Re:Myspace previews complete redesign by __abc on Monday September 24, 2012 @11:47PM (#4568469)
I challenge your assumption that the average person knows how to spoof user agents.
Re:Myspace previews complete redesign by ricardobeat on Tuesday September 25, 2012 @12:46AM (#4568622)
The average person is not using Opera :)
Re:Myspace previews complete redesign by devb0x on Tuesday September 25, 2012 @01:28AM (#4568759)
I agree.. plus I'm using Opera as I type this.
Re:Myspace previews complete redesign by chris_wot on Tuesday September 25, 2012 @07:09AM (#4569697)
It could be worse. You might be using Dillo.
Re:Myspace previews complete redesign by exterm on Tuesday September 25, 2012 @11:38AM (#4570909)
Actually that's quite easy in Opera. There is a dropdown box to select different user agents called "Browser Identification".
Re:Myspace previews complete redesign by __abc on Tuesday September 25, 2012 @03:19PM (#4572150)
I understand that the HN audience finds it incredibly simple to do. My point being, go ask your family members who don't frequent HN (or sites like it) what a user-agent is.
Re:Myspace previews complete redesign by rhizome on Monday September 24, 2012 @09:31PM (#4568045)
Degradability died as an industry desire about 6mos after it emerged.
Re:Myspace previews complete redesign by Tomis02 on Tuesday September 25, 2012 @10:35AM (#4570526)
Opera supports websockets, thank you very much. They're just disabled by default.