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.
18 questions
3
votes
3
answers
193
views
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 ...
2
votes
3
answers
325
views
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 ...
2
votes
3
answers
946
views
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 ...
1
vote
1
answer
94
views
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-...
2
votes
2
answers
3k
views
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 ...
1
vote
2
answers
340
views
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 ...
2
votes
1
answer
165
views
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 ...
1
vote
2
answers
954
views
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 ...
4
votes
1
answer
1k
views
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 ...
0
votes
1
answer
707
views
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 ...
1
vote
2
answers
207
views
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 ...
96
votes
4
answers
36k
views
Differences between TypeScript and Dart [closed]
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 ...
33
votes
4
answers
9k
views
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 ...
11
votes
4
answers
987
views
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 ...
2
votes
1
answer
982
views
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 ...
5
votes
1
answer
2k
views
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. ...
1
vote
4
answers
2k
views
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) ...
15
votes
5
answers
8k
views
What is the current state of Google's Dart programming language? [closed]
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 ...