Stream

Mike Mitterer

Discussion  - 
 
Its very quiet around Angular and Polymer since about 3 or 4 weeks. Does anybody know what's cooking?
3
曹忠's profile photoMarkos Samouhos's profile photo
Add a comment...
 
What characteristics of Javascript had to be preserved in Dart? E.g., its asynchronous nature with callbacks.

Conversely, what "potholes" were smoothed over? E.g., data types. (I know this is very broad question that pretty much describes all of Dart. But I'm looking for some high-level bullet points.)

I'm giving a presentation and would like to discuss how the browser is a critical target for Dart, which means Javascript is the least common denominator for executing anything.

Any references or pointers are appreciated.
1
1
Gabor Orosz's profile photoDavid Kopec's profile photo
3 comments
 
You might also checkout the Chapter 1 section "What's Cool About Dart"
Add a comment...
 
Easy way to sync some of my Dart folders to other computers?
1. Daily spam to Pub: "my_messy_useless_big_package.dart" ?
2. Make HUGE web & lib folders with ALL my data and copy them by GDocs or USB-stick? 
3. Use directly GDocs or DropBox folders in computers?
4. Make my own "path-dependency" to my cloud (Gdocs or DropBox) ??
Symlinks should keep away from this system.?
5. Don't do it.  Just work with different projects in other computers?

I am playing for "nonprofit", so payable systems are out for me. Some G-Cloud systems are out, for same reason.
Github is too.. verbose and difficult. No Git in every computer.
Daily changes to data are not big, but usage should be painless.
- Thanks, for advices.
1
Mike Mitterer's profile photoDavid Kopec's profile photo
5 comments
 
Git, DropBox, Google Drive, Box, Microsoft SkyDrive are all excellent options
Add a comment...
 
I like Dart, I really do, but I can't work with these regresions:

td.text = "Adrián";


Now I get this error,  with dart2js:
FormatException: Bad UTF-8 encoding 0x6e

And in Dartium I get this horrbile character.

I'm really temped to  drop Dart, this is just to much.
1
Mike Mitterer's profile photoTais Plougmann Hansen's profile photo
11 comments
 
+Tais Plougmann Hansen OMG long, long ago... it was just a mess with all these CPs :-)
Add a comment...
 
Finally my 1 week game test with dart is over. I have gathered some data and draw some conclusions. Probably I have made many mistakes (I am not a Dart Ninja!) but I think I have covered some interesting topics.

Note that the test are also in an area where I am new (game development) and Dart has been proven to work very well with 2 other products I have participated in, so this (critical) review does not mean you cannot use it right now! It only attempts to point out some weak areas you might want to be aware of before undertaking a new game project with Dart.

Please read and feel free to correct me where I made a mistake.
I have been playing with Dart and StageXL for 10 days now and I feel like there are thoughts to be shared. Part of this post is also an update to a thread in the StageXL group The game is really simple clone of the flappy ...
15
3
Allan MacDonald's profile photoAlexandre Pugeat's profile photoPeter StJ's profile photoDavid Kopec's profile photo
9 comments
 
+David Kopec Thanks for pointing that out - it would have been great if there was an easy way to measure performance and as far as I could I did it - i measured the times and memory in dartium. I wish it was possible to do it in Android, but I couldn't find a way for it. It was less of dart2js and more a comparison between the two. I might have forgot to mention that, but changing the idioms in the code to better suit the V8 did not made any visible impact on Dartium, the baseline memory and the mem paterns were exactly the same as with the closures and local variables and lots of instances - at least too small of a difference to measure as well as the time to reach a GC event was the same (I test those by leaving the game in 'no play mode' which repeats one and same animation over and over again so no variance is presented from user interaction).
My understanding is that measuring performance is always in comparison with something in order to put meaning in it - so I measured to dart2js. I was thinking about writing the code in Closure JavaScript but it would take a week of work (big part of the code is actually StageXL) and I doubt it would be useful except for this measurement so for now I prefer to concentrate on another task - testing polymer dart in details. If anyone is interested in it I might take the time in future. My experience with closure shows that it is very well suited to produce almost static code as it provides pools and caches right away. It would be interesting to see and I expect great performance out of it, the only problem is closure style code is hard to write (verbose) in timely manner.
Add a comment...
 
I updated my Polymer-Sample on GitHub. As SPA Framework I'm using Angular. So if someone is interested, check it out:
https://github.com/MikeMitterer/DART-Sample-Polymer-Angular

Compiling to JS fails at the moment but it works nice with Dartium. 
6
4
Mike Mitterer's profile photoSeth Ladd's profile photoGünter Zöchbauer's profile photoJirka Daněk's profile photo
2 comments
 
+Seth Ladd No, I think the transformers are not ready for the version I'm using. I "pub upgrade" directly from GitHub. For the moment I'm happy if everything works wit Dartium. 
Add a comment...
 
#metaprogramming  

In dartling you do not need to design a graphical model first. You do not need to generate code for your model. You can create a model by using the meta model of dartling and make it alive with generic web components. All of that in a few lines of code.

http://goo.gl/dgDvcB
6
Dzenan Ridjanovic's profile photoAnders Holmgren's profile photo
12 comments
 
+Anders Holmgren, I have been alone on dartling for a too long time. You are welcome to join the dartling team on your own terms and rythme. I will be happy to help you or any other interested developers with anything you want to know about dartling. If we could use the constrain library that would be great!
Add a comment...

Anders Holmgren

Announcements  - 
 
First (rough) version of  http://pub.dartlang.org/packages/constrain a Java Beans Validation inspired constraints library but much awesomer thanks to Dart's much less sucky annotations and the extensive matcher lib
13
3
Adam Singer's profile photoAllan MacDonald's profile photoGuillaume Girou's profile photoSamil Kale's profile photo
 
looks promising. Im a fan of 303
Add a comment...
 
A slight disappointment in #dartlang.

Dart being a brand new language I expected it to adopt more advanced types than the traditional tried and true. Why is JSON not a native type?

Instead of declaring a variable of type JSON and either make an assignment or invoking new, I am asked to parse a string representation through a codec method. 

JSON seems to be not much more than an extension of Map. Is it not possible for the same level of feature and functionality given to Map could not be extended or applied to a JSON native type? Are there specialized methods that could make a JSON type more rugged and full featured than other languages.

With MongoDB and RethinkDB and a number of other databases and protocols using JSON, I think Dart should give JSON better support by including it in the Core types.

Thoughts?
4
Nathan Cox's profile photoBill Christian's profile photo
13 comments
 
My point. JSON should not be incredibly inefficient and it should be a priority to make it as efficient as possible. I am not clear on the serialized point, but I would not expect the internal representation of the type to require you to serialize the change to a string representation on every change.
Add a comment...

Anders Holmgren

Announcements  - 
 
First release of https://pub.dartlang.org/packages/shelf_bind. A shelf library for binding to class properties
4
2
Adam Singer's profile photoBrian Bonner's profile photo
Add a comment...

Created by

About this community

This is a place to talk informally with other Dart developers. We welcome all Dartisans, be they curious, experimenting, or experts. Use g.co/dartisans to find us!
 
I stumbled across rest.li in my search for a Java based solution for a REST framework. I'm imagining rest.li + MongoDB would make for a JSON fluent back-end.

Opinions?

Additionally, can anyone suggest some JSON friendly libraries for a Dart client? It would be really interesting to get an all JSON workflow.

Thanks!
1
Add a comment...
 
Robotlegs for Google Dart!
(still a LOT of work to do.. haven't even hit alpha, but still :))

https://github.com/dotdotcommadot/dart_robotlegs
https://github.com/dotdotcommadot/dart_robotlegs_di
4
2
Frank Pepermans's profile photoOndina Deanna Filip's profile photoGonzalo Pezzi Rodríguez's profile photo
 
I have been a Flex developer for quite some years, but I haven't tried robotlegs myself. 
However, AngularDart is a very powerful MVC framework that also includes dependency injection, and many other features like directives and components (taking advantage of Shadow DOM), routes, etc.
I find AngularDart a very comprehensive framework and I feel confortable working with it having used Cairngorm and Parsley previously .   
I was wondering ... what features would have Robotlegs for Dart that could make people use it instead of AngularDart?
Add a comment...
 
Anyone seen this error? One page in my app (http://woven.co/futbolmexico) won't load, and all I get in is this error in the Observatory tab in Dartium DevTools:

Top level service responses must be service maps.

{type: Error, msg: Dart not running}

http://d.pr/i/gaib

cc +Kai Sellgren 
1
Add a comment...
 
No banana
Here is the code:
    <x-menu>
      <x-item>Apple</x-item>
      <x-items>Banana
       <x-item color="blue">Big banana</x-item>
       <x-item>Small banana</x-item>
       <x-noitem>No banana</x-noitem>
      </x-items>
      <x-item>Kiwi</x-item>
    </x-menu>

But where is the Banana?

If I remove the select - it will show up:
 <content select="x-items,x-item"></content>

But then I also get my x-notiem
So how do I get my banana?

Posting to the "Dart Dares" to see if anyone knows ... ;-)

#polymer   #dartlang  

EDIT: ----------------------------------------
I found my banana in Dart:
this.firstChild.text on the x-items code displays my banana.
but then I also had to check in the this.children.forEach
that it was x-item and not the x-noitem
if (n.tagName == "X-ITEM")
2
Fred Pallesen's profile photoYannick Sirjean's profile photo
4 comments
 
But it does, if you look at the last part that I've added, I can turn off the <content> and work in code only. Then I get what I want. But using the declarative way ... then I'm lost
Add a comment...
 
confused by <content>

In my html code I have:
    <x-list>
      <li><a href="#">Apple</a></li>
      <li><a href="#">Banana</a></li>
      <div><a href="#">Kiwi</a></div>
    </x-list>

In my polymer element I have:
  <ol reversed="reversed">
    <content select="li"></content>
  </ol>

What I expect is:
 2. Apple
 1. Banana

View source gives:
    <x-list>
      #shadow-root
          <ol reversed="reversed">
            <content select="li"></content>
          </ol>
      <li><a href="#">Apple</a></li>
      <li><a href="#">Banana</a></li>
      <div><a href="#">Kiwi</a></div>
    </x-list>

What I get is:
  1. Apple
  2. Banana

So what do I need to do to get the content right?
1
Add a comment...
 
So... Dartium can't get DnD from the desktop.

https://plus.google.com/u/0/+JavierGuerra_g/posts/SpPX779RgZ8

it seems it's a long-known issue in Chromium (but not in Chrome) (https://code.google.com/p/chromium/issues/detail?id=126766).  easy to check: open Gmail in Dartium, compose a new message, and try to add a file by dragging from the desktop.

The weird thing for Dart is that if it was known, how come that it has surfaced just now in 1.3 SDK?

checking a little more with jsfiddle (http://jsfiddle.net/7C5BH/3/), it seems that Chrome does call the `drop` event even if both .eventAllowed and .dropEffect are 'undefined', while Dartium (and Chromium) doesn't.

I think the specs are missing detail on this, so the Chrome behaviour can't be faulted as "non-standard" and should be adopted, unless the specs are reviewed to better specify what should be done on this case...
1
Add a comment...
 
Did anyone use Dart for Code Jam 2014? :D
1
Add a comment...

Bryan Grohman

Discussion  - 
 
Is anyone using Dart at work for production code or otherwise? I know Dart's website has a list of companies using it, but I'm interested in seeing how many in this community are actively using it.
4
Matthew Butler's profile photoArron Washington's profile photo
23 comments
 
I use it in production. First Dart app was uploaded and running (internally yet broadcasted publicly over TV) in late May - June of 2012 and is still running today with only a couple of changes due to feature requests.
I continue to use it on a number of tools internally. Everything to this point has been client-side with a php backed. However currently developing server side apps to replace the php stuff I don't enjoy. I've recently posted a blog regarding the setup I'm working on. (DAMN stack: Dart, Angular, MongoDB, Nginx) 
Add a comment...

Shawn Drape

Discussion  - 
 
Does anyone know why Dart can only handle compile-time defaults for parameters? It makes dealing with optional maps (such as query parameters or headers in HTTP requests) an inelegant pain compared with optional strings, numbers, booleans, etc.

I mean, I know it's easy enough to get around with "if (urlParams == null) urlParams = {};" but that's another line of code I need to remember to deal with.
2
Kasper Lund's profile photoPaul Brauner's profile photo
9 comments
 
Forgot to say: Thanks for the feedback. We're still listening! 
Add a comment...
 
Server-side Dart development: setting up continuous integration with just a few lines of code
4
5
Henk Jurriens's profile photoGabor Orosz's profile photo
Add a comment...