×
Copy
Open
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Come to the Dart side! We have cookies!
Slide 2
Slide 2 text
Oh my Dart! ladicek.github.com
Slide 3
Slide 3 text
Dart is made for
Slide 4
Slide 4 text
Dart is made for The modern web
Slide 5
Slide 5 text
Dart is made for Ease of use
Slide 6
Slide 6 text
Dart is made for Performance
Slide 7
Slide 7 text
Dart is made for Tooling
Slide 8
Slide 8 text
So Dart is a cool language
Slide 9
Slide 9 text
So Dart is a cool language Not really, no
Slide 10
Slide 10 text
So Dart is a cool language It's rather boring
Slide 11
Slide 11 text
Building blocks
Slide 12
Slide 12 text
Building blocks Braces & semicolons
Slide 13
Slide 13 text
Building blocks Variables
Slide 14
Slide 14 text
Building blocks Functions
Slide 15
Slide 15 text
Building blocks Closures
Slide 16
Slide 16 text
Building blocks Getters & setters
Slide 17
Slide 17 text
Building blocks Classes
Slide 18
Slide 18 text
Building blocks Libraries
Slide 19
Slide 19 text
Building blocks Event loop
Slide 20
Slide 20 text
Classes
Slide 21
Slide 21 text
Classes Lexically scoped this
Slide 22
Slide 22 text
Classes Named constructors
Slide 23
Slide 23 text
Classes Factory constructors
Slide 24
Slide 24 text
Classes Operators
Slide 25
Slide 25 text
Classes noSuchMethod
Slide 26
Slide 26 text
Classes Implicit interfaces
Slide 27
Slide 27 text
Classes Mixins (in the future)
Slide 28
Slide 28 text
Classes Mixin is a difference between a class and its superclass
Slide 29
Slide 29 text
Libraries
Slide 30
Slide 30 text
Libraries Imported by URI
Slide 31
Slide 31 text
Libraries Can have more files
Slide 32
Slide 32 text
Typing
Slide 33
Slide 33 text
Typing Dynamic
Slide 34
Slide 34 text
Typing Optional type annotations
Slide 35
Slide 35 text
Typing Optional type annotations and generics
Slide 36
Slide 36 text
Typing Optional type annotations for documentation and tooling
Slide 37
Slide 37 text
Typing "Innocent until proven guilty"
Slide 38
Slide 38 text
Concurrency
Slide 39
Slide 39 text
Concurrency Single-threaded is good
Slide 40
Slide 40 text
Concurrency Single-threaded is good Except when it isn't
Slide 41
Slide 41 text
Concurrency No shared memory
Slide 42
Slide 42 text
Concurrency No shared memory Actors to the rescue
Slide 43
Slide 43 text
Concurrency No shared memory Actors Isolates
Slide 44
Slide 44 text
Concurrency "Isolated threads"
Slide 45
Slide 45 text
Concurrency Lightweight isolated threads
Slide 46
Slide 46 text
Concurrency Separate heaps and stacks
Slide 47
Slide 47 text
Concurrency Separate heaps and stacks Async communication
Slide 48
Slide 48 text
Privacy Based on names Only for libraries
Slide 49
Slide 49 text
Sugar Only the important right now
Slide 50
Slide 50 text
Sugar Nice to have not yet (maybe in the future)
Slide 51
Slide 51 text
Performance
Slide 52
Slide 52 text
Performance Fast startup
Slide 53
Slide 53 text
Performance Program elements are declared
Slide 54
Slide 54 text
Performance Diet parsing
Slide 55
Slide 55 text
Performance Snapshotting
Slide 56
Slide 56 text
Performance Compile-time constants
Slide 57
Slide 57 text
Performance Fast runtime
Slide 58
Slide 58 text
Performance Beats V8 already (on some benchmarks)
Slide 59
Slide 59 text
Performance And it's just the beginning
Slide 60
Slide 60 text
Tooling Dart Editor IntelliJ IDEA / WebStorm
Slide 61
Slide 61 text
No content
Slide 62
Slide 62 text
So what is it all about?
Slide 63
Slide 63 text
So what is it all about? Structure!
Slide 64
Slide 64 text
ladicek.github.com ?
Slide 65
Slide 65 text
Async
Slide 66
Slide 66 text
Async Still very much open topic
Slide 67
Slide 67 text
Async Still very much open topic (not only in Dart)
Slide 68
Slide 68 text
Async Callbacks
Slide 69
Slide 69 text
Async Callbacks
Slide 70
Slide 70 text
Async Futures
Slide 71
Slide 71 text
Async Futures
Slide 72
Slide 72 text
Async await? async blocks? promise pipelining?
Slide 73
Slide 73 text
This isn't real Dart code! Future> xAxis = db1.fetchData(100); Future> yAxis = db2.fetchData(100); async { List xs <- xAxis; List ys <- yAxis; plot(xs, ys); } catch (e) { doSomething(); }
Slide 74
Slide 74 text
Metaprogramming
Slide 75
Slide 75 text
Reflection Metaprogramming
Slide 76
Slide 76 text
Mirrors Reflection Metaprogramming
Slide 77
Slide 77 text
Mirrors Base level and meta level completely separated
Slide 78
Slide 78 text
Mirrors Introspecting functions, objects, classes, ...
Slide 79
Slide 79 text
Mirrors And other isolates!
Slide 80
Slide 80 text
Mirrors And other isolates! (Needs to be async...)
Slide 81
Slide 81 text
Mirrors Only in the VM right now
Slide 82
Slide 82 text
Mirrors Coming to dart2js
Slide 83
Slide 83 text
Mirrors Coming to dart2js But... optimizations?
Slide 84
Slide 84 text
Mirrors Builders (in the future)
Slide 85
Slide 85 text
Mirrors Builders (in the future) Creating/modifying code
Slide 86
Slide 86 text
Mirrors Debugging (in the future)
Slide 87
Slide 87 text
Mirrors Debugging (in the future) Introspecting the stack
Slide 88
Slide 88 text
Client side
Slide 89
Slide 89 text
Client side DOM reinvented
Slide 90
Slide 90 text
Client side DOM reinvented jQuery-like experience
Slide 91
Slide 91 text
Client side JS interop
Slide 92
Slide 92 text
Web Components
Slide 93
Slide 93 text
Web Components Templates
Slide 94
Slide 94 text
Web Components with data binding
Slide 95
Slide 95 text
Web Components and loops and conditionals
Slide 96
Slide 96 text
Web Components and event listeners
Slide 97
Slide 97 text
Web Components in plain old HTML
Slide 98
Slide 98 text
Web Components in plain old HTML (almost)
Slide 99
Slide 99 text
Web Components Components
Slide 100
Slide 100 text
Web Components = your own tags
Slide 101
Slide 101 text
Yes! Your own tags!
Slide 102
Slide 102 text
Web Components with templates
Slide 103
Slide 103 text
Web Components and Dart code
Slide 104
Slide 104 text
Server side
Slide 105
Slide 105 text
Server side Async IO, like in Node.js
Slide 106
Slide 106 text
Server side Filesystem access (files, directories, ...)
Slide 107
Slide 107 text
Server side Environment access (starting processes, ...)
Slide 108
Slide 108 text
Server side Network access (HTTP, WebSocket, ...)
Slide 109
Slide 109 text
Pub
Slide 110
Slide 110 text
Pub Package manager
Slide 111
Slide 111 text
Pub on the server
Slide 112
Slide 112 text
Pub and in the browser too!
Slide 113
Slide 113 text
Pub One or more libraries or an application
Slide 114
Slide 114 text
Pub semver.org
Slide 115
Slide 115 text
Pub Dependencies
Slide 116
Slide 116 text
Pub Dependencies with version locking
Slide 117
Slide 117 text
Community
Slide 118
Slide 118 text
Community dartflash
Slide 119
Slide 119 text
Community Buckshot
Slide 120
Slide 120 text
Community Rikulo
Slide 121
Slide 121 text
Community DartGap
Slide 122
Slide 122 text
Community three.dart
Slide 123
Slide 123 text
Community Spectre
Slide 124
Slide 124 text
Community DartBox2D
Slide 125
Slide 125 text
Community … … … … ... … … … ...
Slide 126
Slide 126 text
And much, much more!
Slide 127
Slide 127 text
ladicek.github.com ?