42 points · by lvivski · 13y ago · 27 comments
Since Dart lacks the ability to extend built-in types using something like extension methods, categories or refinements as seen in other languages I think exposing a user-controlled class is the way to go as it lets you expose a framework-focused, value-added, user-facing DRY API.
I made user-controlled classes that get populated with relevant data and middleware information. Like stuff from form parsing.
[1] http://github.com/lvivski/hart [2] http://github.com/lvivski/gloss
You might be interested in checking out http://pub.dartlang.org which is our repository of Dart packages. Meanwhile, we're still in beta, so I hope to see more projects when we hit 1.0.
I suspect that's why you haven't seen many projects in Dart.
From my own experience, I'd say that this strategy worked exactly as intended. I was able to write code after skimming through some of the examples. To be honest, I only bothered with Dart because it used C-like syntax.
Also, it compiles to surprisingly fast JavaScript [1]. Support by all browser vendors isn't necessary. You can use it either way. The lack of support really doesn't change anything. You'd use a build/deploy script either way, wouldn't you?
[1] https://plus.google.com/u/0/114943499066504644906/posts/WXNL...
* Dart's goal is not to explore exciting new syntax, it's about giving developers a language that can quickly start being productive on.
* Cleaning up a lot of the messy syntax that exist in Javascript today.
* Be able to easily and efficiently compile to Javascript. This seems to be the reason for a lot of the language syntax decisions.
* Provide a full development experience (language, tools, ui, etc...) out of the box.
Also, tool-visible types allow for better/easier tool-assisted development, something that has been a stumbling block even in the most monstrous of IDEs. For example, ever ctrl-clicked a function assigned to a var in Eclipse?
The Dart code[1], which includes the VM, dart2js, editor, analyzer, and all libraries are under new BSD license. The entire contents of the dartlang.org website are even on Github[2] under Creative Commons, so you can submit pull requests to have any page on the website updated.
While it's direction is being decided by Google, they are taking a lot of input from the community via the mailing lists and bug submissions. Though, it is not driven by committee like EMCAScript is, I'm ok with that for now. I believe when Dart was originally launched they said they would consider submitting the language as an ISO standard once it has become more stable, which may still happen.
Yes, one of the long term goals of the language is standardization. The project is open source, we have external committers, and we've taken numerous patches. Pull Requests welcome!
The main chance I see for the language getting adoption is to start from the server side, if Google could sponsor a full featured web framework in the language with async capabilities, talking to major DBs, and other batteries. Basically a Dart Rails or Django (maybe a little scaled back in the beginning).
Sure, you can let the community create several competing frameworks, like this one. But nothing will get traction like a Google-backed, with 1-2 full time employees behind it, nice documentation et al.
Having spoken with one of the people who works on Dart, the idea is not to kill an open standard (why would Google do that?), but rather to fix the horrible mess that is Javascript.
Same thing for the shutdown of Reader - how does that prevent you from using any other RSS reader?
Controlling the language gives you unique power over the whole ecosystem. Google gets to decide what is permissible, and what is not. Google is tearing out their OpenWeb support and building walled gardens.
The more Dart becomes popular, the more we become locked in to Google, and the more our options and possibilities are constrained.
Here is a nice list:
https://github.com/jashkenas/coffee-script/wiki/List-of-lang...