Questions tagged [dart]

Dart (originally, Dash) is an open source Web programming language developed by Google. The goal of Dart is ultimately to replace JavaScript as the lingua franca of web development on the open web platform.

Dart is a class-based, single inheritance, object-oriented language with C-style syntax. It supports interfaces, abstract classes, reified generics, and optional typing. Static type annotations do not affect the runtime semantics of the code. Instead, the type annotations can provide documentation for tools like static checkers and dynamic run time checks.

Dart is designed to run in modern web browsers, either directly inside a Dart virtual machine embedded in the web browser, or as compiled JavaScript. Dart's virtual machine is also designed to run Dart programs on the server or command line. For example, the Dart project ships libraries for network IO, files, and directories.

Dart compiles to modern JavaScript, allowing Dart apps to run on the modern web. However, there is a special version of Chromium that embeds the Dart virtual machine. This enables this browser to run Dart programs without first being compiled to JavaScript.

Here you can find the official DART website.

15 questions
95
votes
4 answers

Differences between TypeScript and Dart

Microsoft recently unveiled Typescript, a new JavaScript-like programming language. Some time ago, I heard about Dart, a new programming language created by Google to solve problems related to Javascript like performance, scalability, etc.. The…
margabit
  • 1,266
  • 1
  • 9
  • 9
33
votes
4 answers

Does Dart have any useful features for web programmers?

http://www.dartlang.org/ I've checked out the site very briefly, and got curious. Is there any advantages of using Dart? Is it just a replacement for JavaScript? It looks like simpler Java. Writing quite a lot of C# at work, the language feels very…
marko
  • 1,103
  • 2
  • 11
  • 18
15
votes
5 answers

What is the current state of Google's Dart programming language?

Dart has been out for ages (in internet years), but judging by Google Trends , it hasn't gotten much hype, and the fact that it only works in Chrome doesn't help either. Nonetheless, Chrome is gaining market share every day, which lends itself to a…
Mihalis Bagos
  • 688
  • 7
  • 14
11
votes
4 answers

How does the GPL work in regards to languages like Dart which compile to other languages?

Google's Dart language is not supported by any Web Browsers other than a special build of Chromium known as Dartium. To use Dart for production code you need to run it through a Dart->JavaScript compiler/translator and then use the outputted…
Peter-W
  • 211
  • 1
  • 2
5
votes
1 answer

Are the criticisms against Dart valid?

According to this Wikipedia article, Microsoft, Apple, Mozilla, and others criticize Dart, a programming language Google introduced to work in web browsers, because they feel "it seems harmful (cf. VBScript in IE)". But Dart also compiles to…
Hassan
  • 315
  • 2
  • 8
4
votes
1 answer

Java "module" size

Is it sensible to have micro-modules, say with only a very few (perhaps one) class in it? Or should I store things in bigger repositories? I am long-time Java developer with a software-engineering background. I try and write well encapsulated,…
David Kerr
  • 296
  • 1
  • 6
2
votes
1 answer

Can 32/64 bit version of Dart SDK have any effect on produced javascript code?

I just started collaborating remotely on a project. Project manager explicitly asked me to download Dart SDK 32bit version. Since I have 64bit machine I asked why to find out more about it. I was told that "we're compiling the Dart code into…
Tomáš Zato
  • 853
  • 1
  • 10
  • 20
2
votes
1 answer

Were method cascades ever considered for C#?

Smalltalk supports a syntax feature called "message cascades". Cascades are being adopted by the Dart Programming language. As far as I know, C# doesn't support this. Were they ever considered during the design of the language? Is it conceivable…
dharmatech
  • 531
  • 5
  • 11
1
vote
1 answer

Is using an UId to hash Mutable Entities an anti-pattern?

In the context of an object-oriented language, such as Dart, I have an abstract entity which has a single property called id (which is incrementally uniquely generated to make sure there are no-clashes). Then, classes which extend Entity can add…
Fabrizio
  • 115
  • 5
1
vote
2 answers

Where to place a common database connection in clean architecture?

I am currently trying to follow the clean architecture approach but i wonder where common things like a database connections should take place. Since i think a database connection usually will be opened once, but different tables in there are used…
Jim Panse
  • 338
  • 3
  • 11
1
vote
2 answers

Best way to display errors from a model to the user?

I'm developing an app (using Flutter) that has a model that contains most of the business logic, and a view that displays the user interface. The model can call notifyListeners to inform the view that some data in the model has changed, and the UI…
Magnus
  • 405
  • 3
  • 10
1
vote
2 answers

Is JavaScript "write once run everywhere"?

I have a business requirement for a javascript "write once run everywhere" App. I did research and discovered that there are a few options between: FireFox OS, ChromeOS, NodeOS, Tizen, and Dart. What I do not know - is if 1) this software is truly…
Jack Stone
  • 1,151
  • 10
  • 11
1
vote
2 answers

Creating a text input simplifaction tool

I have been working on a project for several months now to write a web-based tool that will help me at work. I work at a call center and the CRM software that is used is wretched, we basically have to input all of our information into notepad…
Mrow
  • 19
  • 2
1
vote
4 answers

Why doesn't the DART language use a special character to identify variables?

I come from a PHP background and I have been considering looking at DART in more detail. DART is an, open source, front-end/back-end, language for web development. PHP has a special $ (dollar) character to indicate…
JW01
  • 3,579
  • 4
  • 22
  • 22
0
votes
1 answer

Is the Dart philosophy compatible with testability and dependency injection?

One of the Dart criticized features are named and factory constructors. There are opinions (from dependency injection people), that constructors should be simple and just assign some fields and the object graph creation is a responsibility of…
Samuel Hapak
  • 101
  • 2