Typescript: Javascript senza problemi by Andrea Boschin
-
Upload
codemotion -
Category
Technology
-
view
488 -
download
2
description
Transcript of Typescript: Javascript senza problemi by Andrea Boschin
2013
json html5
Typescript: Javascript senza problemi.andrea boschin
Javascript Story
[email protected] – adam|factory
1995rel. 1.0Netscape 2.0IE 3.0
1998rel. 1.3ECMA 1 e 2.0IE 4.0
2000rel. 1.5ECMA 3.0IE 5.0 (jscript)
2005rel. 1.6ECMA 4.0 (ritirato)
2010rel. 1.8.2ECMA 5.0
????rel. ?ECMA 6.0
blackberry internetexplorer
chromefirefox
iPadnode.js
operaiPhone
Typescript: Javascript senza problemi.andrea boschin [email protected] – adam|factory
WinRT
azure
windows phonemacintosh
linux android
Javascript Today
Any BrowserAny HostAny OS
Typescript: Javascript senza problemi.andrea boschin [email protected] – adam|factory
Javascript Development
pro
• potente• estensibile• molte
librerie
contro
• difficile• poco
manutenibile• type unsafe• oop incompleto
poco adatto ad applicazioni reali
Except where otherwise noted, this work is licensed under: http://creativecommon.org/licenses/by-nc-sa/3.0/
Typescript: Javascript senza problemi.andrea boschin
• E' un superset tipizzato di Javascript
• E' Open Source!• il compilatore stesso è scritto in Typescript
[email protected] – adam|factory
Except where otherwise noted, this work is licensed under: http://creativecommon.org/licenses/by-nc-sa/3.0/
Typescript: Javascript senza problemi.andrea boschin
•starts with javascript•tutto il codice javascript è anche codice typescript
•optional static types, classes and modules•migliora leggibilità e manutenibilità del codice•supporta sviluppo di applicazioni scalabili•tutto il codice sparisce a runtime
•ends with javascript•la compilazione genera Javascript
[email protected] – adam|factory
Except where otherwise noted, this work is licensed under: http://creativecommon.org/licenses/by-nc-sa/3.0/
blackberry internetexplorer
chromefirefox
iPadnode.js
operaiPhone
Typescript: Javascript senza problemi.andrea boschin
Any Browser!Any Host!Any OS!
[email protected] – adam|factory
WinRT
azure
windows phonemacintosh
linux android
Except where otherwise noted, this work is licensed under: http://creativecommon.org/licenses/by-nc-sa/3.0/
Typescript: Javascript senza problemi.andrea boschin [email protected] – adam|factory
•allineato agli standard emergenti•la sintassi è allineata con la proposta di Ecmascript 6.0
•output in Ecmascript 3.0/5.0•è possibile scegliere l'outout mediante switch di compilazione
Except where otherwise noted, this work is licensed under: http://creativecommon.org/licenses/by-nc-sa/3.0/
Typescript: Javascript senza problemi.andrea boschin [email protected] – adam|factory
ace | amcharts | angularjs | async | backbone | bootbox | bootstrap | box2d | breeze | casperjs | cheerio | chosen | chrome | codemirror | commander | d3 | domo | durandal | easeljs | ember | express | fabricjs | fancybox | filesystem | flexslider | flot | foundation | gamepad | globalize | google | hammerjs | history | i18next | impress | jake | jasmine | jquery | jqueryui | knockout | kolite | linq | marked | modernizr | mousetrap | mustache | node | preloadjs | phonegap | platform | quinit | raphael | requirejs | restify | rxjs | scroller | signalr | sinon | spin | storejs | sugar | swipeview | threejs | teechart | toastr | tween | underscore | unity | urijs | videojs | winjs
può usare qualunque libreria esistente!https://github.com/borisyankov/DefinitelyTyped
Except where otherwise noted, this work is licensed under: http://creativecommon.org/licenses/by-nc-sa/3.0/
DEMO
Except where otherwise noted, this work is licensed under: http://creativecommon.org/licenses/by-nc-sa/3.0/
Typescript: Javascript senza problemi.andrea boschin [email protected] – adam|factory
•play•http://typescriptlang.org/playground
•download & docs•http://www.typescriptlang.org/
•plugin Visual Studio 2012•http://www.microsoft.com/en-us/download/details.aspx?id=34790
•source code•http://typescript.codeplex.com/
@Typescript: Javascript senza problemi.andrea boschin
Contact me:
Company: adam | factory
UG http://xedotnet.org XeDotNet (Venezia Mestre) email [email protected] @aboschinfacebook http://www.facebook.com/thelittlegroveblog http://blog.boschin.itsite http://xamlplayground.org
xbox codeblock68
[email protected] – adam|factory