r/programming • u/Darkglow666 • May 08 '19
Announcing Dart 2.3: Optimized for building user interfaces
https://medium.com/dartlang/announcing-dart-2-3-optimized-for-building-user-interfaces-e84919ca1dff3
u/Ameisen May 09 '19
How is Dart for writing scripts compared to Ruby, Python, or Crystal?
1
u/Darkglow666 May 09 '19
I use Dart for my quick scripts, and it's been great. Dart syntax is like C or Java, but less verbose, so people who know those kinds of languages can pick it up very easily compared to the alternate style of Python or Ruby.
2
u/IDCh May 09 '19
I would love to use Dart more, but it simply does not have enough libraries written in Dart itself or at least having type definition files like in TypeScript :( I tried to search a simple Tween library and did not find anything working except Flutter libraries, which are for mobile development.
I really, really like the api and standard library methods.
But it seems Dart within its relatively long lifespan has abandoned it's use as web language. I may be wrong, it's just it seems for me that is the case.
Does Google use Dart for it's web services, pages etc?
1
u/Darkglow666 May 09 '19
AngularDart is used a lot within Google. For the web, if something you need is missing a Dart implementation, you can just use JavaScript libraries quite easily. Also, Flutter is for mobile now, but it's being adapted for web and desktop, as well.
4
u/kankyo May 09 '19
If you want some more ideas for language features specifically for GUIs you should check out tri.table (python lib). I'm one of the authors.
We do some crazy stuff with python to get transparent layering of abstractions where you can tweak the underlying data structures very finely while keeping the simple case crazy simple. An example is to render an html table of a db model:
Table.render(request, model=User)Now let's say I want to tweak that by changing the rendering of the header for username and hiding the password column:
Table.render(request, model=User, column__username__display_name='something', column__password__show=False)there are much more advanced customization possibilities but I think this shows the basics. Everything has a name and a path so can be addressed.
3
u/inu-no-policemen May 08 '19
Collection-for and collection-if seem useful but also really unusual. Is there any other language which has something similar?