martin schray
play

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


  1. Martin Schray Sr. Technical Evangelist Microsoft Corporation Contact Info Blog: http://aka.ms/martin Twitter: @mschray Email: mschray@microsoft.com

  2. Large scale JavaScript development is hard.

  3. • 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

  4. TypeScript: A language for large scale JavaScript development.

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

  6. Any browser. Any host. Any OS.

  7. • Optional and structural typing • Classes, modules • Interfaces

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

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

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

  11. TypeScript->TypeScript Compiler= JavaScript

  12. Structural typing and type inference Generics Works with existing JavaScript libraries Types enable tooling

  13. 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 … •

  14. Scalable application structuring Aligned with emerging standards Supports popular module systems

  15. Community Frameworks T ool support

  16. - Just JS - Parameters - Classes - Generics - Lamda - Node - Converting

  17. TypeScript Resources Details These resources will help you get started with Visual Studio 2013 Update 2 includes TypeScript 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/

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend