News for hackers. Stuff that matters.
Re:Dart language by frisco on Monday October 10, 2011 @03:14AM (#3092580)
The "hello world" example is incredibly uninformative. What does that have to do with "structured web programming"? Where is this printed out on a web page? Does the console output there correspond to the html output? Or some other console?
Re:Dart language by haasted on Monday October 10, 2011 @03:22AM (#3092611)
It's actually runnable if you click the "play"-icon in the top-left of the code sample.

The "Hello, Dart!" is written to a console emerging from underneath the code sample.

https://code.google.com/p/dart/source/browse/branches/bleedi... is a more DOM-oriented version of the same program.

Re:Dart language by frisco on Monday October 10, 2011 @04:01AM (#3092729)
I realize it's runnable -- that's what I mean by it's not clear what the console that appears underneath refers to. Is that "echoed" out to the page? Or something different?
Re:Dart language by jmesserly on Monday October 10, 2011 @03:27AM (#3092624)
Yeah, there are more links to code samples here: http://www.dartlang.org/samples/index.html
Re:Dart language by gambo on Monday October 10, 2011 @04:13AM (#3092780)
Hmm strange, I can't see the "play"-icon using FFX 3.6.23
Re:Dart language by dchest on Monday October 10, 2011 @08:45AM (#3093512)
Dart currently compiles to JS that runs on Firefox 4+.

http://www.dartlang.org/docs/technical-overview/index.html#h...

Re:Dart language by funkah on Monday October 10, 2011 @10:34AM (#3093907)
Yeah, exactly. This "hello world" uses a "print" function. What would such a print function do in a normal web app? Write to the console or something?