Live data from Hacker News

I ported a JavaScript app to Dart

blog.sethladd.com

81–83 of 83 posts

Re: I ported a JavaScript app to Dart

#81

Earlier quoted context omitted.

Like, when you build an API, (or other backend stuff) you're not concerned about browsers or the DOM - thats really just a delivery mechanism. So you can run --harmony within your own server and have it spit out JSON. Client doesn't know or care what your running, just the JSON.

Ah, you mean "server side". Gotcha. Yes, building for the server is easier because you have a single runtime to target. In the case of Node, it's V8. In the case of Dart, it's Dart VM on the server.

So what's Dart vs ES6?

Re: I ported a JavaScript app to Dart

#82

It's a little bit sad that Google pays people to have their entire job be to astroturf for Dart with blog posts like this one. Being a "developer advocate" is one thing, writing official documentation, answering questions on forums, whatever — but "I ported a JavaScript app to Dart. Here's what I learned." Seriously? More like "I'm on the Dart Team. I ported a JavaScript app to Dart because it's my job." Open source…

Couldn't it also be the case that he's not doing it because he's paid to, but because he loves Dart? People at Google can move around between projects, and generally, if you're working on a particular project, it's not because you are disinterested in it and simply collecting a paycheck, but you're enthusiastic about it. This is especially true of developer advocates. No one's whining about all the HTML5 advocacy tha…

I do not work at Google and yes, I love Dart. By following Seth's work for two years and a half, it is obvious to me that he loves Dart.

Why do I love Dart? As a developer and a university professor, for the first time in my long career, I can do the following with Dart:

I can use Dart both on the client and on the server; with Dart, I can apply both object-oriented and functional way of programming.

I can develop in Dart and deploy applications in JavaScript.

I can be a productive developer with many Dart tools and libraries, and get a very good performance in either Dart applications or their JavaScript versions.

I can start developing a prototype without data types and introduce them when I need to convert the prototype to a deployable application.

I can use Dart for both synchronous and asynchronous programming.

I can use many publicly available packages and reuse their libraries.

I can be a web engineer on the client-side and a software engineer on the server-side, with the same language and many reusable libraries.

Re: I ported a JavaScript app to Dart

#83
post #3

Earlier quoted context omitted.

It just doesn't play well with JS, because it was designed as a JS replacement, with an own Runtime, which kinda sucks...

Care to be more specific? You can use JavaScript from Dart now, and we're working on improving interop support. Feedback is welcome.

Really?

When I last looked into it, there had to be some strange stuff to be done, to call JS from Dart and Dart from JS.

It just didn't felt as naturally as in TypeScript or LiveScript.

Post reply on HN