'Wm Leler' via Dart Misc
2018-02-03 16:47:13 UTC
Disclaimer: I'm a developer advocate for Dart and Flutter, but this post is
my personal opinion.
Regarding the whole discussion about Dart's focus on being the best
client-side language -- I don't see anyone complaining that focus is a bad
thing. In fact, almost all languages that have had a lasting impact were
originally very focused:
- C was a language for writing operating systems and compilers. It
became so much more.
- Java was a language for embedded systems.
- JavaScript was a scripting language for browsers (!).
- Even the often maligned PHP succeeded because it was focused on
writing Personal Home Pages (hence the name).
I'm sure you can think of many more examples.
On the other hand, many languages have explicitly tried (and failed) to be
completely general purpose I'm looking at you, PL/1 and Ada, among others.
Not good.
I think (as others have said) that Dart is already a good language for
writing server-side code. The fact that Dart avoids preemptive
multi-tasking gives it the same advantages as Node, but with much better
typing, and I doubt it is a coincidence that some of the original creators
of Dart also created the V8 compiler that enabled JavaScript on the server.
Nobody is going to tell you not to use Dart for server code (in fact, we
still use Dart on servers, so we would have to tell ourselves). And I
believe strongly that focusing Dart on being the best language for writing
client code will in fact make it a *better* language for writing other
kinds of code, including server-side code. Even more important, making Dart
successful on the client will inevitably generate more interest in using it
on the server (just like what happened with JavaScript and Node -- why
force people to use two different languages?).
Focus is important, and the purposes for which a language can be used is
not a zero-sum game.
So keep using Dart on the server. And if there is some library that would
help with server-side Dart, consider writing it so that the Dart team can
focus on the client. Think of this as an opportunity.
my personal opinion.
Regarding the whole discussion about Dart's focus on being the best
client-side language -- I don't see anyone complaining that focus is a bad
thing. In fact, almost all languages that have had a lasting impact were
originally very focused:
- C was a language for writing operating systems and compilers. It
became so much more.
- Java was a language for embedded systems.
- JavaScript was a scripting language for browsers (!).
- Even the often maligned PHP succeeded because it was focused on
writing Personal Home Pages (hence the name).
I'm sure you can think of many more examples.
On the other hand, many languages have explicitly tried (and failed) to be
completely general purpose I'm looking at you, PL/1 and Ada, among others.
Not good.
I think (as others have said) that Dart is already a good language for
writing server-side code. The fact that Dart avoids preemptive
multi-tasking gives it the same advantages as Node, but with much better
typing, and I doubt it is a coincidence that some of the original creators
of Dart also created the V8 compiler that enabled JavaScript on the server.
Nobody is going to tell you not to use Dart for server code (in fact, we
still use Dart on servers, so we would have to tell ourselves). And I
believe strongly that focusing Dart on being the best language for writing
client code will in fact make it a *better* language for writing other
kinds of code, including server-side code. Even more important, making Dart
successful on the client will inevitably generate more interest in using it
on the server (just like what happened with JavaScript and Node -- why
force people to use two different languages?).
Focus is important, and the purposes for which a language can be used is
not a zero-sum game.
So keep using Dart on the server. And if there is some library that would
help with server-side Dart, consider writing it so that the Dart team can
focus on the client. Think of this as an opportunity.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.