Live data from Hacker News

Dart 1.0 Is Out

news.dartlang.org

131–140 of 162 posts

Re: Dart 1.0 Is Out

#131
post #84

Earlier quoted context omitted.

> [Dart] is not an open standard It will get standardized in the not too distant future. [1] > Apple dominating the mobile web Huh? Android's market share is over 80%. iOS got about 13%. [2] [1] http://www.ecma-international.org/news/Dart%20workshop.htm [2] http://thenextweb.com/insider/2013/11/12/idc-android-hit-81-...

Android's market share maybe 80% but it is about 50/50 in terms of web usage. And don't forget that Apple customers are acknowledged as the more valuable (higher net worth, disposable income, tastemakers etc)

Wait until developing word get their smart phones.

Re: Dart 1.0 Is Out

#132

Is there a downloadable reference manual for the language? I see book excerpts, but not a complete language reference.

https://www.dartlang.org/docs/spec/

This is Language spec. not useful for developers. I would suggest downloading 5 links as HTML from here:

https://www.dartlang.org/docs/dart-up-and-running/

Re: Dart 1.0 Is Out

#133
post #101

Earlier quoted context omitted.

Dart is a better Java (that can run in a browser if you want). Go is a better C++.

Actually I wouldn't say Go is a better C++. Rust is a better C++. Go is.. weird. I would even say it is a better Java.

A better Python?

Re: Dart 1.0 Is Out

#134
post #68

Earlier quoted context omitted.

In C it is almost customary to use `goto` as poor man's exception handler: you do `goto cleanup` from inside of nested ifs and loops if a fatal error happens and all you need is to clean up what needs cleaning and return an error code. The problem is that `goto` is easy to abuse, and, worse, easy to abuse inadvertently , e.g. you might produce a `goto` into a loop or something like that during refactoring. JavaScript…

It's important to remember that the "goto" Dijkstra is talking about is very different from the "goto" that C programmers use. He's talk about unstructured goto: jumping from the middle of one function to another, or across scopes . "Goto" as another local flow control construct is relatively innocuous.

Yes. He's talking about BASIC and things like it, right?

  10 PRINT "hello, world"
  20 GOTO 10

Re: Dart 1.0 Is Out

#135
post #24
post #17

This is really awesome! Congrats to the team! We have a ton of JavaScript/CoffeeScript code and I really wish we could use something like Dart. JavaScript is great for smaller projects, but once you get a ton of code it really becomes a unmanageable mess. I think tho' it would be amazing if Dart could run on the server side as well. This way you could just have one language on both the client and the server.

If you are looking for a structured language (for front end dev), Typescript is a better alternative imho. Javascript devs can still read it and it's compatible with any JS library out there. Dart not so much since the semantics are different.You can still interact with JS libs but it's not as straight foward as TS. I tested a number of options (GWT,Haxe,CS,Dart,Opal,Jsx,...),while i'm not a Microsoft fan(by a long s…

I agree with this very much. Dart is a new language; JS is an existing language, improved.

Dart actually has horrible semantics in places. Only if x === true will if(x) run.

Re: Dart 1.0 Is Out

#136
post #89

Sad to throw away the brilliance of prototypes to go back to single-inheritance classes. uck

JS prototypes provide a single parent lookup delegation, which is not that different from single inheritance and is mostly used to emulate single inheritance class systems in the wild.

Furthermore Dart supports mixins, so it's not exactly single inheritance classes.

Re: Dart 1.0 Is Out

#137
post #54
post #45

Earlier quoted context omitted.

Funny how things would be different today. ES4 failed mainly because some people thought ES3 was good enough. Adobe,harshly critized for Flash was the one pushing for a better javascript. I will never understand why Microsoft basically killed ES4. They had their own implementation on .net ( JScript.net ) so it's not like it was going to be a huge effort. The only reason would be Microsoft pushing Silverlight at that…

Javascript lost a decade because of that. People without an investment in Javascript have lost over a decade because of Javascript's monopoly on clients being maintained. If we had not been forcibly locked into Javascript all this time, then competition would have produced a better alternative or whipped the process designing Javascript into shape. Now we are stuck with this ridiculously tall, messy stack which uses…

> So now we are constantly pushing megs of JS, using insanely complicated build systems to get anything done, and for all this trouble our code runs at a speed roughly equivalent to C in 1998.

Those who care, just keep happily using plain native applications.

Re: Dart 1.0 Is Out

#138
post #12

So if i get it right, the way "Google" sees the future, there is Go at the server side and Dart at client side (which is in fact JS). Am I wrong? I would expect Google, or at least, a team at Google, to take over NodeJS which is based on their V8 and expand it to universal server client language and libs. JS can be complied into go binaries after all, so why not letting people write apps using the same language. Let…

Dart is a better Java (that can run in a browser if you want). Go is a better C++.

> Go is a better C++.

Only when it gets generics, real enumerations, dynamic loading support, proper dependency management for large scale projects.

Re: Dart 1.0 Is Out

#139

Earlier quoted context omitted.

Dart also compiles to JavaScript, and was designed to do so from the very beginning.

It adds complexity to the dev process, and I'm not sure of the benefits of said complexity. The devs still at the core need to understand JavaScript it seems like.

> The devs still at the core need to understand JavaScript it seems like.

No, that's not the case. You need to understand the browser DOM, and the various APIs available to you, but these are presented by Dart libraries. If you have knowledge of Java or C#, then that knowledge will be useful, and if you have knowledge of JavaScript's functional elements, then that is also useful, but none of that is mandatory to be effective with Dart.

Re: Dart 1.0 Is Out

#140
post #64

Earlier quoted context omitted.

I don't need to learn assembly to use C. I don't need to learn the JVM bytecode to use Java. Sure for special cases knowing those things can help get the very best out of your code, but for the other 99% of the time, it is not necessary. (Edit: Not that I recommend Dart over JS necessarily, but I don't agree with your argument.)

> I don't need to learn assembly to use C. I don't need to learn the JVM bytecode to use Java. But you DO need to learn Javascript to use Dart on web apps, so the comparison is irrelevant.

Why do you need to learn JavaScript to use Dart? You need to understand the DOM and the browser APIs (presented through Dart libraries), and HTML, CSS, but you very much don't need to know a jot of JavaScript to build and deploy Dart or dart2js applications. Even the Dart2js output has sourcemaps letting you view source in the original Dart.
Post reply on HN