TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Announcing Dart 2: Optimized for Client-Side Development

39 点作者 timsneath大约 7 年前

6 条评论

isoos大约 7 年前
Dart has great client-side support for both mobile (Flutter) and web (compiles to JS, has many differently flavoured web frameworks, AngularDart being the most prominent one). The article talks about it in great detail, check it for yourself.<p>You can also run server&#x2F;console programs, which is rather similar to Node. Compared to Node, it has better core infrastructure (isolates, zones), but fewer libraries (basic databases are covered though).<p>When somebody uploads a Dart package to pub.dartlang.org, the site will run analysis on the package and provides platform classification and quality metrics of the code. It will be running the same thing when its dependencies are updated, which will make sure that you can see an up-to-date analysis all the time.<p>The language is easy to learn. The core APIs provide a great sense of consistency and good support. For simple programs (which could include a simple SPA with both client and server side) you don&#x27;t need to import any third-party dependency and get by with the SDK APIs, but there are libraries that help you along the way.<p>Unfortunately, most Dart developers I know are very busy getting stuff done, so you won&#x27;t get much social media hype around it.
nozzlegear大约 7 年前
I&#x27;m a huge fan of Dart and very happy to see this. I haven&#x27;t been able to use it in any non-hobby projects yet, but I love that Dart compiles to JavaScript on the frontend and runs in a VM without any compilation on the server. A good programming language that works on both the server and the browser is like my &quot;holy grail&quot; of programming.<p>However, there&#x27;s one thing keeping me from using Dart more professionally, and that&#x27;s how surprisingly difficult it is to work with JSON out of the box. For a language that compiles to JS I would expect JSON interop to be as easy as &quot;Json.Serialize&quot; and &quot;Json.Deserialize&quot;, but instead you need to fiddle with mirrors, add properties and metadata to classes, extend other classes, monkey around with maps and keys, add build steps, etc. This is a big showstopper when you work with web apps, and I&#x27;m slightly disappointed to not read any improvements on this front in Dart 2.0, unless I&#x27;ve missed something.<p>(Shameless plug, I wrote a very brief summary of my thoughts on Dart -- 1.2, not 2.0 -- after trying it for the first time: <a href="https:&#x2F;&#x2F;nozzlegear.com&#x2F;blog&#x2F;quick-thoughts-on-the-dart-language" rel="nofollow">https:&#x2F;&#x2F;nozzlegear.com&#x2F;blog&#x2F;quick-thoughts-on-the-dart-langu...</a> )
评论 #16441665 未加载
评论 #16442251 未加载
评论 #16442975 未加载
jaxondu大约 7 年前
There is a new Google project <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;flutter-desktop-embedding" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;flutter-desktop-embedding</a> called Flutter Desktop Embedding, allow you to use Flutter view in desktop application.
kolar大约 7 年前
Dart as a language is great. My biggest complaint for dart team is that they have abandoned Polymer Dart. For web we have now Angular which is overkill for small to medium non-CRUD apps or dart:html which is like jQuery with types, just a little bit to low level.
评论 #16444977 未加载
grizzles大约 7 年前
Why don&#x27;t they make flutter for the web too? It seems like a strange omission.
jekyu大约 7 年前
Great News!!!