roma 2014 google devfest. join the dart side of web development giovanni laquidara claudio...

26
Roma 2014 Google DevFest

Upload: autumn-reville

Post on 13-Dec-2015

222 views

Category:

Documents


0 download

TRANSCRIPT

Roma 2014Google DevFest

Join the Dart Side of Web Development

Giovanni LaquidaraClaudio d’Angelise il Team del GDG Roma L-Ab

● Language● Libraries● Tools● Compilation to JavaScript

Dart is open source● BSD-style license● dart.googlecode.com● GitHub mirror● Contributing guide● ECMA Standard (TC52)● Production ready (1.7)

Compiles to JavaScript, runs across the modern web

Run Dart on the server with the Dart VM

● New language, familiar

syntax

● Rich libraries

● Consistent semantics

"Coffee".missing // ??Class 'String' has no instance getter 'missing'.

NoSuchMethodError :method not found: 'missing'Receiver: "Coffee"Arguments: []

“2” > 1 // ??Unhandled exception:Class 'String' has no instance method '>'.

NoSuchMethodError : method not found: '>'Receiver: "2"Arguments: [1]

Built-in libraries

asynccollectionconvertcorehtmlindexed_dbioisolate

jsmathmirrorssvgtyped_dataweb_audioweb_glweb_sql

Kansas City Public Library

Asynchronous andconcurrent programming

https://www.flickr.com/photos/huskyte/8519749145/in/photostream/

Futures

Streams

Isolates

Dart-to-JS Compiler & Performance

Dart2js' s features:

●Minification & Source Maps

●Global type inference

●Tree-shaking

−Compile-time dead code elimination

main Library

baz foo bar boo

imports

callsbaz

main foo bar

Tree shaking

dart2js

https://dartlang.org/performance

●IDE: Dart Editor

●Package Manager: pub

●JS compiler: dart2js

●Library documentation generator: docgen

●Static analyzer: dartanalyzer

●Chromium with Dart VM: Dartium

Language, Libraries & Tools

Polymer.dart AngularDart

Homepage: https://dartlang.orgAPI Reference: https://api.dartlang.orgPub Packages: https://pub.dartlang.org

AngularDart: https://angulardart.orgPolymer.dart:

https://dartlang.org/polymer-dart

Claudio d'Angelis

Twitter: @daw985Google+, Github: claudiodangelis

Giovanni Laquidara

Twitter: @joaolaqGoogle+: +giovannilaquidaraGithub: joaobiriba

Roma 2014Google DevFest

Claudio d'Angelis

Twitter: @daw985Google+, Github: claudiodangelis

Giovanni Laquidara

Twitter: @joaolaqGoogle+: +giovannilaquidaraGithub: joaobiriba