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.

18 questions
96
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,276
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
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
  • 698
  • 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
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
  • 345
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,…
3
votes
3 answers

Why does the collection library for Dart use a bit mask for hashing collections?

I was implementing a hashing function for a class and I took a minute to look at the first-party collection package for Dart to see how they implemented their hashing function for collections. They use the Jenkins one-at-a-time algorithm to…
Abion47
  • 141
2
votes
3 answers

How do I model this scenario so that it adheres to OOP principles?

I have a Slide class with subclasses referring to the different types of slides (IntroSlide, SummarySlide, etc.): abstract class Slide { String slideType; final String title; final String voiceover; final String? bgImage; final…
2
votes
3 answers

Streams and clean architecture

I am pretty new to async programming and the whole stream stuff, since i have a web programming background with php, where async programming and streams isn't really a big topic most time. I try to implement clean archtiecture in my next application…
Jim Panse
  • 408
2
votes
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
  • 408
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…
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
  • 12
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
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
  • 415
  • 1
  • 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
1
2