using type script on a big open source project

24
David Catuhe Principal Program Manager Microsoft Using TypeScript in a big open source project @deltakosh

Upload: david-catuhe

Post on 21-Jun-2015

115 views

Category:

Software


3 download

DESCRIPTION

Session I delivered at HTML5DevConf

TRANSCRIPT

Page 1: Using type script on a big open source project

David CatuhePrincipal Program ManagerMicrosoft

Using TypeScript in a big open source project

@deltakosh

Page 2: Using type script on a big open source project

What is Babylon.js?

Page 3: Using type script on a big open source project

Babylon.js is:

An average of 1 version per month 28 contributors 33 releases 592 commits14000+ lines of code More than 120 files of code More than 250 forks A bandwidth of 1 TB per month for the website 1.3GB (Code and samples)

Page 4: Using type script on a big open source project

Why TypeScript ? Click icon to add picture

Page 5: Using type script on a big open source project

Because it is transparent for users

Page 6: Using type script on a big open source project

Demo

What does TypeScript generate?

Page 7: Using type script on a big open source project

Because Babylon.js is an open source framework

Page 8: Using type script on a big open source project

Demo

Finding awful bugs

Page 9: Using type script on a big open source project

Because TypeScript is open source

Page 10: Using type script on a big open source project

Node.js Eclipse Sublime Text WebStorm Emacs VI Visual Studio 2012 / 2013

Develop with TypeScript

Page 11: Using type script on a big open source project

Because TypeScript is incredibly efficient with Visual Studio

Page 12: Using type script on a big open source project

Demo

Using Visual Studio 2013 Update 2 with TypeScript

Page 13: Using type script on a big open source project

Because TypeScript clearly simplifies your code

Page 14: Using type script on a big open source project

Demo

Handling inheritanceThis is not thatAdding properties

Page 15: Using type script on a big open source project

For the future…

Page 16: Using type script on a big open source project

The promise / callbacks hell

Page 17: Using type script on a big open source project

Can become just gorgeous…

Page 18: Using type script on a big open source project

How to port from JavaScript to TypeScript ?

Click icon to add picture

Page 19: Using type script on a big open source project

From the ground up…

Page 20: Using type script on a big open source project

Demo

Porting Babylon.math.js

Page 21: Using type script on a big open source project

Don’t be afraid to mix things up

Page 22: Using type script on a big open source project

Using interfaces and mixins

Page 23: Using type script on a big open source project

Demo

Babylon.mixins.ts

Page 24: Using type script on a big open source project

Call to actionsOfficial site: http://www.TypeScriptlang.org/ Online playground:http://www.TypeScriptlang.org/PlaygroundSource code:http://TypeScript.codeplex.com/Documentation: http://TypeScript.codeplex.com/documentation