Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Dart

1,026 views

Published on

Short presentation about Dart presented before Code Lab.
Code Lab is available on the Github:
* https://github.com/Janamou/dart-codelab/
* https://github.com/Janamou/dart-codelab/wiki

Published in: Software

Dart

  1. 1. Introduction to the Dart lang Jana Moudrá | @Janamou | +JanaMoudrá
  2. 2. Open-source For better performance Easy to learn Object oriented Modular
  3. 3. Use the Dart language, libraries, and tools to write anything from simple scripts to full-featured apps. Source: www.dartlang.org
  4. 4. How?
  5. 5. How? Download Dart
  6. 6. Dart SDK Dart Editor Dartium
  7. 7. Dart SDK Dart VM Libraries Command Line Tools
  8. 8. How? Learn the language
  9. 9. How? Learn the language It is easy!
  10. 10. Optional Types var x = 10; var y = 20; or num x = 10; num y = 20;
  11. 11. void main() { print("Hello world Dart!"); } main() function
  12. 12. void main() { querySelector("#my-button") ..text = "Open Window" ..onClick.listen(openWindow); } Cascade operator
  13. 13. class Person { String firstName; String lastName; int age; Person(this.firstName, this.lastName); } void main() { Person person = new Person("Jana", "Moudrá"); } Syntactic sugar
  14. 14. class Person { String firstName; String lastName; int age; Person(this.firstName, this.lastName); Person.withAge(this.lastName, this.age); } void main() { Person person = new Person.withAge("Moudrá", 25); } Named constructors
  15. 15. class Person { String _firstName; String _lastName; int _age; Person(this._firstName, this._lastName); Person.withAge(this._lastName, this._age); int get age => _age; set age(int age) => _age = age; } Getter and Setter
  16. 16. How? Develop awesome apps!
  17. 17. Code Lab Part...
  18. 18. github.com/Janamou/dart-codelab

×