Oktober (WEB)fest
Lo sviluppo web come non l’avete mai visto: nuove tecnologie e applicazioni nel mondo reale
#oktoberwebfest
@andreabalducci
#oktoberwebfest
TypeScriptPrimo appuntamento o relazione occasionale con JavaScript?Protetto è meglio! TypeScript: testato, sicuro, tipizzato.
t yp e war s
the ra i s e o f t h e comp i l e r s
“Fear is the path
to the dark side.
a long time ago in a galaxy far, far
away
…written in 10 days for
the mythical…
NON PROFESSIONAL PROGRAMMER
NON PROFESSIONAL PROGRAMMER
welcome to the {undefined} side
==
NaN NaN
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript
Types enable TypeScript developers to use highly-productive development tools and practices
Types enable TypeScript developers to use highly-productive development tools and practices
goal: make javascript development more productive and enjoyable…especially on large projects
static checking, symbol-based navigation, statement completion, and code refactoring.
https://github.com/borisyankov/DefinitelyTyped
demogithub.com/andreabalducci/ts-oktober-web-fest
class Jedi {constructor(public name: string) {}
useTheForce() {}}
class SuperHero {constructor(public name: string) {}
useTheForce() {}jump() {}
}
var hulk = new SuperHero('Hulk');
var yoda = new Jedi('Yoda');
yoda = hulk
hulk = yoda
yoda = hulk
hulk = yoda
TypeScript is a
structural type system
features from the futuretoday!
async / awaitdestructuringrest parametersclasses
string interpolation…
decorators
proposed standard for ECMAScript 7, to annotate and modify classes and properties at design time.
http://blog.wolksoftware.com/decorators-reflection-javascript-typescript
episode 3episode 4
GRAZIE!
www.dotnetumbria.org - @DotNetUmbria – facebook.com/DNU2.0
“ A l w a y s p a s s o n w h a t y o u h a v e learned.”