-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
226 lines (207 loc) · 6.93 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>reveal.js</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/white.css">
<link rel="stylesheet" href="css/theme/custom.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- Introduccion -->
<section>
<h1>Typescript en el mundo real</h1>
</section>
<!-- Presentación -->
<section>
<h3>Rafael Poveda</h3>
<p>@raerpo</p>
<img class="avatar" src="https://media.licdn.com/mpr/mpr/shrinknp_400_400/p/8/005/016/308/19cdfd0.jpg" alt="Avatar">
<ul>
<li>Frontend developer en Adessa Falabella<sup>*</sup></li>
<li>5 años de experiencia frontend en e-commerce</li>
<li>Javascript ❤️</li>
<li>Colombiano 🇨🇴</li>
</ul>
<small class="footnote">We're hiring</small>
</section>
<!-- que es typescript -->
<section>
<section>
<aside class="notes">
- ES6 es un superset de ES5
// TODO
- Ejemplos de caracteristicas que ES5 no ha deprecado
</aside>
<p>Typescript es un superset con tipado de JavaScript que compila a JavaScript.</p>
<img src="static/superset.png" alt="Typescript superset">
<small class="footnote"><a href="https://www.ng-book.com/2/p/TypeScript/">Fuente imagen</a></small>
</section>
<section>
En el año 2012...
</section>
<section>
<aside class="notes">
- cosas interesantes del 2012
- bower fue creado
- se libero el código fuente de prince of persia
- Estaban de moda los MVC para el frontend
- Lo más popular era Backbone, knokout, Ember y Angular eran los nuevos.
</aside>
<img class="half" src="static/song1-2012.gif" alt="Call me maybe">
<img class="half" src="static/song2-2012.gif" alt="Gangnam style">
<img class="half" src="static/movie1-2012.gif" alt="Avengers">
<img class="half" src="static/movie2-2012.gif" alt="Django">
</section>
<section>
El 12 de octubre a las 8:45AM <a href="https://channel9.msdn.com/posts/Anders-Hejlsberg-Introducing-TypeScript">se lanza TypeScript</a>
<img src="static/Anders_Hejlsberg.jpg" alt="" style="width: 300px">
<h3>Anders Hejlsberg</h3>
<p>Autor de Turbo pascal, Delphi, C# y TypeScript.</p>
</section>
</section>
<!-- Propositos de Typescript -->
<section>
<h3>Propositos</h3>
<div class="half-container">
<div class="half-content">
<p>Agregar tipado estático a JS</p>
<span class="fragment fade-down" data-fragment-index="1"><img src="static/flow-facebook.jpg" style="width: 300px" alt=""></span>
</div>
<div class="half-content">
<p>Usar caracteristicas del JS futuro, ahora.</p>
<span class="fragment fade-down" data-fragment-index="1"><img src="static/babel.jpg" style="width: 300px" alt=""></span>
</div>
</div>
</section>
<!-- feature gap -->
<section>
<section>
<img src="static/feature-gap-1.png" alt="">
</section>
<section>
<img src="static/feature-gap-2.png" alt="">
</section>
<section data-background="#b5533c">
<aside class="notes">
- step01: Funcion en javascript con errores
- step02: typescript funcionando (https://www.typescriptlang.org/docs/handbook/compiler-options.html)
- step03: javascript es6: Hacer un programa sin tipos que compile a ES5. Mostrar como compila a ES6 y a ES5
- step04: ejemplos de la pagina de babel pero hechos con typescript
http://kangax.github.io/compat-table/es6/#typescript
</aside>
<h1>Demo</h1>
</section>
</section>
<!-- tipado implicito y tipado explicito -->
<section>
<section>
<h4>Tipado implicito y explicito</h4>
<img src="static/tipadoExplicito.png" alt="">
</section>
<section data-background="#b5533c">
<aside class="notes">
- tag: tipadoExplicito
</aside>
<h1>Demo</h1>
</section>
</section>
<!-- tsconfig.json -->
<section>
<section>
<img src="static/knob.jpg" alt="" style="width: 300px;">
<p>tsconfig.json</p>
</section>
<section>
<img src="static/fullTypescript.png" alt="" style="width: 300px;">
</section>
<section data-background="#b5533c">
<aside class="notes">
- step05: opciones del compilador: target, dontEmitOnError, sourceMap, noUnsedParameters
</aside>
<h1>Demo</h1>
</section>
</section>
<!-- dom -->
<section>
<section>
<h3>TypeScript y el DOM.</h3>
<img src="static/dom.png" alt="">
</section>
<section data-background="#b5533c">
<aside class="notes">
- tag: dom2
arreglar los errores que aparecen
</aside>
<h1>Demo</h1>
</section>
</section>
<!-- Hapi -->
<section>
<section>
<h3>Node / Hapi.js</h3>
<img src="static/hapi.png" alt="">
</section>
<section data-background="#b5533c">
<aside class="notes">
- carpeta: /demos/hapi-noders
</aside>
<h1>Demo</h1>
</section>
</section>
<!-- React -->
<section>
<section>
<h3>React</h3>
<img src="static/react.png" alt="">
</section>
<section data-background="#b5533c">
<aside class="notes">
- carpeta: /demos/react-noders
</aside>
<h1>Demo</h1>
</section>
</section>
<section>
<h3>Más info...</h3>
<a href="https://www.typescriptlang.org/">Documentación oficial</a>
<a href="https://github.com/basarat/typescript-book">Typescript deep dive</a>
</section>
<!-- Fin -->
<section>
<section>
<img src="static/continuara.png" alt="">
</section>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>