Otimizando eu JavaScript com TypeScript
-
Upload
andre-baltieri -
Category
Software
-
view
1.262 -
download
0
Transcript of Otimizando eu JavaScript com TypeScript
![Page 1: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/1.jpg)
ANDRÉ BALTIERIANDREBALTIERI.NET/
Otimizando seu
JavaScript com
TypeScript
![Page 2: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/2.jpg)
O QUE É O TYPESCRIPT?SUPERSET DO JAVASCRIPTCRIADO POR ANDERS HEIJNSBERGFLEXÍVELCOMPILADOFUTURISTAÓTIMO INTELISENSE NO VS CODE
![Page 3: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/3.jpg)
O QUE ELE RESOLVE?SEU JAVASCRIPT CRESCEU?ESTÁ BAGUNÇADO?VOCÊ TEM DIFICULDADES EM REFATORAR?TEM DIFICULDADES EM TESTAR?TEM DIFICULDADES EM DEBUGAR?
![Page 4: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/4.jpg)
INICIANDO
TSC MEUARQUIVO.TS
![Page 5: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/5.jpg)
TIPAGEM
TSC MEUARQUIVO.TS
![Page 6: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/6.jpg)
INTERFACES
![Page 7: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/7.jpg)
INTERFACES
![Page 8: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/8.jpg)
CLASSES
![Page 9: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/9.jpg)
CLASSES
![Page 10: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/10.jpg)
CLASSES
![Page 11: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/11.jpg)
MODULOS
![Page 12: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/12.jpg)
MELHORANDO...ESTRUTURANDO EM ARQUIVOS SEPARADOS|- CONTRACTS
|- IPESSOA.TS|- PESSOA.TS|- MAIN.TS|- _ALL.TS|- INDEX.HTML
![Page 13: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/13.jpg)
IPESSOA.TS
![Page 14: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/14.jpg)
ALUNO.TS
![Page 15: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/15.jpg)
MAIN.TS
![Page 16: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/16.jpg)
_ALL.TS
![Page 17: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/17.jpg)
INDEX.HTML
![Page 18: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/18.jpg)
RESULTADO...HUMMM… AINDA DÁ PARA MELHORAR
![Page 19: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/19.jpg)
AUTOMATIZANDO COM GULPNPM INIT -YNPM INSTAL GULP GULP-TSC GULP-WATCH --SAVE
![Page 20: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/20.jpg)
GULP
![Page 21: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/21.jpg)
MENOS É MAISREDUÇÃO NOS REQUESTS AJUDANA PERFORMANCE DO CARREGAMENTODA PÁGINA
![Page 22: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/22.jpg)
MELHORANDO…
![Page 23: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/23.jpg)
MUITO MENOS ÉAINDAMAIS…
![Page 24: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/24.jpg)
TUDOAUTOMÁTICO COM GULP-WATCH
![Page 25: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/25.jpg)
http://lab1024.com.br
http://andrebaltieri.net
ANDRÉ BALTIERI
![Page 26: Otimizando eu JavaScript com TypeScript](https://reader034.fdocumentos.com/reader034/viewer/2022050614/589b4a6b1a28ab4a398b5733/html5/thumbnails/26.jpg)
MUITO OBRIGADO!
ANDRÉ BALTIERI