Profile cover photo
Profile photo
Jim Simon
140 followers
140 followers
About
Jim's posts

Post has shared content
With upvotes and posts, help keep the Quora readers from being misinformed about Dart.

Post has shared content
I've always been of the opinion that high schools should require at least one programming class. Short of that, the internet has made it easy to learn some basic coding skills on your own time and without paying a dime.

Post has shared content
The new https://customelements.io is here!

Go and explore the world of Web Components :) 
Photo

Looks like I lost the lottery for Google IO... :(

At least I'm lucky enough to have gone once before...guess there's always next year...

Has anyone run into any issues using a closure inside of isolate.addOnExitListener()?

The following snippet of code is not working how I would expect:
items.forEach((name, item) async {
      Isolate isolate = await Isolate.spawnUri(...);
      item.status = "running";
      ReceivePort receivePort = new ReceivePort();
      isolate.addOnExitListener(receivePort.sendPort);
      receivePort.listen((message){
        if (message == null) {
          print("Item exited: ${item.name}");
          item.status = "stopped";
        }
      });
});

items contains 3 values, each with a distinct name: item1, item2, item3

When I run this code, the only output I get is:
"Item exited: item3"

I should be getting the following output (not necessarily in order):
"Item exited: item1"
"Item exited: item2"
"Item exited: item3"

Any thoughts?  I'm just trying to track whether the isolate is currently running or not (and in the future whether it has errored out).

How about saving some Google IO tickets for those of us attending the Dart Developer Summit!

Eh +Seth Ladd​, think you can hook us up? ;)

(Realistically, I know this is unlikely, but hey it's worth a shot)

Post has attachment
Anyone know where I can get my hands on some Dart merchandize (stickers, t-shirts, coffee cups, etc.)? I found http://www.unixstickers.com/stickers/coding_stickers/dart-programming-language-logo-shaped-sticker#intro for stickers, but I haven't been able to find much else.

Hello everyone!  I just thought I'd share an interesting use case that we're using Polymer for at my work.  Essentially, we have a ton of content stored as [mostly] semantic XML that we need to render in the browser.  Initially we were looking at translating everything to JSON until someone pointed out the obvious: we can define custom Polymer elements for each XML element, insert the XML content into the DOM, and let the browser + Polymer handle progressively updating/drawing everything.

Anyway, I thought it was an interesting way to use Polymer and it has me wondering whether XML and Polymer/Web Components has the potential to displace what has become the (in my mind) unofficial standard of always using JSON.  I'm not saying JSON is better than XML or vice versa, only that the picture may not be as clear as some of us (or at least I) originally thought it was.

I'm curious to hear any opinions anyone has with regards to this kind of architecture.

Post has shared content
I'm proud to say that earlier today I published my first package to pub!
https://pub.dartlang.org/packages/managed_mongo

Managed Mongo is a library for downloading, starting, and stopping an instance of mongo from within a Dart library or application.  It's ideal for unit/integration tests or standalone applications that need to package their own database.

This library has been tested primarily on OSX, but should work for Linux and Windows as well.  Please report any bugs on the project's Github page.  Feedback is also always welcome!

Post has attachment
I'm proud to say that earlier today I published my first package to pub!
https://pub.dartlang.org/packages/managed_mongo

Managed Mongo is a library for downloading, starting, and stopping an instance of mongo from within a Dart library or application.  It's ideal for unit/integration tests or standalone applications that need to package their own database.

This library has been tested primarily on OSX, but should work for Linux and Windows as well.  Please report any bugs on the project's Github page.  Feedback is also always welcome!
Wait while more posts are being loaded