Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[Jana Moudrá] Let's play Dart

[Jana Moudrá] Let's play Dart

Presentation from GDG DevFest Ukraine 2015 - the biggest Google related event in the country. October 23-24, Lviv. Learn more at http://devfest.gdg.org.ua/

Google Developers Group Lviv

October 23, 2015
Tweet

More Decks by Google Developers Group Lviv

Other Decks in Programming

Transcript

  1. class Person { String name; int age; Person(this.name, this.age); }

    Person person = new Person("Peter", 18); Easy to learn
  2. class Person { var name; var age; Person(this.name, this.age); }

    var person = new Person("Peter", 18); Types are optional
  3. Person person = new Person(); person.name = "Peter"; person.age =

    18; person.hairColor = "brown"; Normal developer life
  4. Person person = new Person() ..name = "Peter" ..age =

    18 ..hairColor = "brown"; Hello .. operator
  5. pub

  6. name: my_super_app version: 0.1.0 description: My super application! dependencies: args:

    any pubspec.yaml $ pub get Resolving dependencies... Got dependencies!
  7. dart:async, dart:collection, dart:convert, dart:core, dart:developer, dart:html, dart:indexed_db, dart:io, dart:isolate, dart:js,

    dart: math, dart:mirrors, dart:svg, dart: typed_data, dart:web_audio, dart:web_gl, dart:web_sql
  8. Tests rule the world code Package test test("Person is Jana",

    () { Person person = new Person("Jana"); expect(person.name, equals("Jana")); });
  9. Documentation for everything /** * [ProcessResult] represents the result of

    * running a non-interactive process started with * [Process.run] or [Process.runSync]. */ class ProcessResult {
  10. Image credits • Matthew Keefe, cc, https://www.flickr.com/photos/60243770@N00/3123775954/ • Mari Wirta,

    cc https://www.flickr.com/photos/64194626@N03/6292870807/ • jenny downing, cc, https://www.flickr. com/photos/7941044@N06/3990391143/ • Kjetil Korslien, cc https://www.flickr.com/photos/kjetikor/8484119632/ • Kārlis Dambrāns, cc https://www.flickr.com/photos/janitors/16524906898