Martin Schray Sr. Technical Evangelist Microsoft Corporation - - PowerPoint PPT Presentation

martin schray
SMART_READER_LITE
LIVE PREVIEW

Martin Schray Sr. Technical Evangelist Microsoft Corporation - - PowerPoint PPT Presentation

Martin Schray Sr. Technical Evangelist Microsoft Corporation Contact Info Blog: http://aka.ms/martin Twitter: @mschray Email: mschray@microsoft.com Large scale JavaScript development is hard. Organizing a large and growing code base


slide-1
SLIDE 1

Martin Schray

  • Sr. Technical Evangelist

Microsoft Corporation

Contact Info

Blog: http://aka.ms/martin Twitter: @mschray Email: mschray@microsoft.com

slide-2
SLIDE 2
slide-3
SLIDE 3

Large scale JavaScript development is hard.

slide-4
SLIDE 4
  • Organizing a large and growing code base

“compensating” patterns

  • Refactoring JavaScript code is difficult
  • “JavaScript code ‘rots’ over time”
  • “Writing JavaScript code in a large project is like carving code in stone”
  • Describing APIs
  • Keep the description in synch with the implementation
slide-5
SLIDE 5

TypeScript: A language for large scale JavaScript development.

slide-6
SLIDE 6

TypeScript: A typed superset of JavaScript that compiles to plain JavaScript.

slide-7
SLIDE 7

Any browser. Any host. Any OS.

slide-8
SLIDE 8
  • Optional and structural typing
  • Classes, modules
  • Interfaces
slide-9
SLIDE 9

“JavaScript has a type system it’s just not manifest until runtime” - Anders Hejlsberg

slide-10
SLIDE 10

The essence of TypeScript is that it is a static formalization of JavaScript dynamic runtime type system.

slide-11
SLIDE 11
slide-12
SLIDE 12

Type systems have historically been either on or off. TypeScript makes it a dial and you get to turn that dial

slide-13
SLIDE 13

TypeScript->TypeScript Compiler= JavaScript

slide-14
SLIDE 14

Structural typing and type inference Generics Works with existing JavaScript libraries

Types enable tooling

slide-15
SLIDE 15
  • Visual Studio Online – 150k lines of

TypeScript (port of existing JS Code base)

  • Project Monoco – browser based editor

environment – 150k lines of code (seen in http://try.buildwinjs.com/)

  • Internet Explorers F12 tools
  • TypeScript Compiler, TypeScript

Language service

slide-16
SLIDE 16

Scalable application structuring Aligned with emerging standards Supports popular module systems

slide-17
SLIDE 17

Community Frameworks T

  • ol support
slide-18
SLIDE 18
  • Just JS
  • Parameters
  • Classes
  • Generics
  • Lamda
  • Node
  • Converting
slide-19
SLIDE 19
slide-20
SLIDE 20

TypeScript Resources

These resources will help you get started with TypeScript

Details

Visual Studio 2013 Update 2 includes TypeScript TypeScript Anders Build Session 3-576 Building a Large Scale JavaScript Application in TypeScript 3-358 http://www.typescriptlang.org/ Source: http://typescript.codeplex.com/ Definitely Typed: https://github.com/borisyankov/DefinitelyTyped WinJS: http://try.buildwinjs.com/