4 ms·
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?
by frisco 15y ago
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?
- haasted 15y agoIt'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/bleeding_edge/dart/client/samples/hi/hi.dart https://code.google.com/p/dart/source/browse/branches/bleedi... is a more DOM-oriented version of the same program.
- frisco 15y agoI 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?
- jmesserly 15y agoYeah, there are more links to code samples here: http://www.dartlang.org/samples/index.html http://www.dartlang.org/samples/index.html
- gambo 15y agoHmm strange, I can't see the "play"-icon using FFX 3.6.23
- dchest 15y agoDart currently compiles to JS that runs on Firefox 4+. http://www.dartlang.org/docs/technical-overview/index.html#howtouse http://www.dartlang.org/docs/technical-overview/index.html#h...
- funkah 15y agoYeah, 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?