dart - Google 的 Dart 编程语言的作用是什么?

标签 dart

我很难理解 Google 编程语言 Dart 的主要用途是什么。它的作用是什么?我为什么要使用它?

最佳答案

您可以在 this article 上查看技术方面的信息。引用:

The Dart programming language is presented here in its early stages. The following design goals will guide the continued evolution and refinement of this open source project:

  • Create a structured yet flexible programming language for the web.
  • Make Dart feel familiar and natural to programmers and thus easy to learn.
  • Ensure that all Dart language constructs allow high performance and fast application startup.
  • Make Dart appropriate for the full range of devices on the web—including phones, tablets, laptops, and servers.
  • Provide tools that make Dart run fast across all major modern browsers.

These design goals address the following problems currently facing web developers:

  • Small scripts often evolve into large web applications with no apparent structure—they’re hard to debug and difficult to maintain. In addition, these monolithic apps can’t be split up so that different teams can work on them independently. It’s difficult to be productive when a web application gets large.
  • Scripting languages are popular because their lightweight nature makes it easy to write code quickly. Generally, the contracts with other parts of an application are conveyed in comments rather than in the language structure itself. As a result, it’s difficult for someone other than the author to read and maintain a particular piece of code.
  • With existing languages, the developer is forced to make a choice between static and dynamic languages. Traditional static languages require heavyweight toolchains and a coding style that can feel inflexible and overly constrained.
  • Developers have not been able to create homogeneous systems that encompass both client and server, except for a few cases such as Node.js and Google Web Toolkit (GWT).
  • Different languages and formats entail context switches that are cumbersome and add complexity to the coding process.

关于dart - Google 的 Dart 编程语言的作用是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7722583/

相关文章:

dart - Tracing.dart 的 Angular Dart 导入错误

ios - Youtube_player_flutter 无法在 iOS 设备上播放视频

flutter - 如何重新启动在完成前停止但参数不同的动画

flutter - 如何在 dart 中生成或编译 flutter gRPC .proto 文件

Flutter - 找不到 Assets : lib/assets/images 的文件或变体

php - 如何通过 PHP 将照片从 Flutter App 上传到服务器?

android - 使用按钮单击和滚动进行水平页面交换 - Flutter

firebase - 为什么Firestore数据赋予Class 'QueryDocumentSnapshot'没有实例方法 '[]'。错误?

dart - 观看Dart polymer 元件的性能变化

macos - zsh:找不到命令:pub