News for hackers. Stuff that matters.
Re:Google Dart target: Chrome soon, other browsers someday by pcwalton on Tuesday December 17, 2013 @02:04PM (#6923072)
> To be very clear, Dart runs across the modern web when you compile it to JavaScript, so it's not a language that works only in one browser.

What stops sites from shipping Dart only and not shipping the JavaScript?

Re:Google Dart target: Chrome soon, other browsers someday by RyanZAG on Tuesday December 17, 2013 @02:08PM (#6923095)
Nothing. Expect some sneaky deals on special Chrome apps in the future that will convince popular apps (with a nice sum of money) to have their hot new app being 'dart exclusive'. It's the obvious end game that sounds cynical if not for the fact that every single company in that position has historically abused that position.
Re:Google Dart target: Chrome soon, other browsers someday by _greim_ on Tuesday December 17, 2013 @02:11PM (#6923112)
They'd lose a huge chunk of traffic, but otherwise nothing would stop them and someone is eventually bound to try it.
Re:Google Dart target: Chrome soon, other browsers someday by lukesandberg on Tuesday December 17, 2013 @02:09PM (#6923102)
The same thing that prevents sites from shipping sites that only support particular browsers today.
Re:Google Dart target: Chrome soon, other browsers someday by pcwalton on Tuesday December 17, 2013 @02:12PM (#6923127)
> The same thing that prevents sites from shipping sites that only support particular browsers today.

That's right, and historically encouraging authors to use vendor-specific stuff by making that the easiest thing to do, whether it be filter:progid:DXImageTransform, WebKit prefixes, ActiveX banking plugins, or what have you, has been bad for user choice.

To give just one example, WebKit asked authors not to rely on WebKit prefixes, but they did and now we're in the situation where just yesterday I wasn't able to use clippercard.com on Firefox for Android because the design was so broken as to be unusable. :(

Re:Google Dart target: Chrome soon, other browsers someday by sethladd on Tuesday December 17, 2013 @04:53PM (#6924209)
Why would a site want to target only Chrome? If your site has a URL, I think it's of the site's best interest to target many modern browsers and provide a graceful upgrade/download experience.
Re:Google Dart target: Chrome soon, other browsers someday by pcwalton on Tuesday December 17, 2013 @09:22PM (#6925500)
> Why would a site want to target only Chrome? If your site has a URL, I think it's of the site's best interest to target many modern browsers and provide a graceful upgrade/download experience.

I agree that sites should do it, but developers have not done this in the past. If Chrome has a commanding market share, history says that developers will not bother to target other browsers.

Re:Google Dart target: Chrome soon, other browsers someday by rtpg on Tuesday December 17, 2013 @03:04PM (#6923552)
nothing, it's their loss. But seeing how you can get JS support "for free", then there's no reason not to have both available.
Re:Google Dart target: Chrome soon, other browsers someday by pcwalton on Tuesday December 17, 2013 @04:08PM (#6923980)
It's also possible to add other vendor prefixes "for free", but that didn't stop WebKit-only prefixes from appearing all over the mobile Web. Developers do what is easiest.
Re:Google Dart target: Chrome soon, other browsers someday by rtpg on Wednesday December 18, 2013 @04:25AM (#6926625)
adding vendor prefixes isn't free. with Dart it's only one extra command to run. With prefixes, you have to keep track of all the usages.
Re:Google Dart target: Chrome soon, other browsers someday by pcwalton on Wednesday December 18, 2013 @01:45PM (#6929606)
Sass, Less, or Myth add all the prefixes. It's only one extra command to run.