SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Downloaden Sie, um offline zu lesen
TypeScript
&&
Grails
RailWayJS
Express
Tower.js
Derby
Meteor
Socket IO
Geddy.js
Flatiron.js
Locomotive
SocketStream
TypeScript is
✤ Language for application-scale JavaScript development
✤ Typed superset of JavaScript that compiles to plain JavaScript
✤ Any browser. Any host. Any OS. Open Source.
✤ Strong Tools for Large Applications
✤ Scalable
✤ ES6 based
TypeScript has
ClearJS
function Greeter(greeting) {
this.greeting = greeting;
}
Greeter.prototype.greet = function () {
return "Hello, " + this.greeting;
};
var greeter = new Greeter("world");
Types
function Greeter(greeting: string) {
this.greeting = greeting;
}
var greeter = new Greeter("world");
Types
function Greeter(greeting: string) {
this.greeting = greeting;
}
var greeter = new Greeter("world"); // ok
var bad = new Greeter(5); // bad
MoreTypes
✤ Numbers
✤ Boolean
✤ Null
✤ Undefined
✤ Object
✤ Void
✤ Any
Classes
class Greeter {
greeting: string;
constructor(message: string) {
this.greeting = message;
}
greet() {
return "Hello, " + this.greeting;
}
}
var greeter = new Greeter("world");
Inheritance
class Animal {
constructor(public name: string) { }
move(meters: number) {
alert(this.name + " moved " + meters + "m.");
}
}
class Snake extends Animal {
constructor(name: string) { super(name); }
move() {
alert("Slithering...");
super.move(5);
}
}
var sam = new Snake("Sammy the Python");
sam.move();
Modules
module Sayings {
export class Greeter {
greeting: string;
constructor(message: string) {
this.greeting = message;
}
greet() {
return "Hello, " + this.greeting;
}
}
}
var greeter = new Sayings.Greeter("world");
Interface
InstallNode.jsonUbuntu
##Install the dependencies:
$ sudo apt-get install g++ curl libssl-dev apache2-utils
$ sudo apt-get install git-core
##Run the following commands:
$ git clone git://github.com/ry/node.git
$ cd node
$ ./configure
$ make && sudo make install
##Check node:
$ node -v
InstallNode.jsonMac
if (homebrew) {
brew upgrade
brew install node
node -v
} else {
https://github.com/mxcl/homebrew/wiki/installation
}
InstallNode.jsonWindows
http://nodejs.org/#download
InstallNPM
##Ubuntu:
$ curl http://npmjs.org/install.sh | sh
##Mac
$ brew upgrade
$ brew install npm
##Windows:
$ http://npmjs.org/doc/README.html#Installing-on-
Windows-Experimental
InstallTypeScript
##Ubuntu && ##Mac && ##Win
$ npm install -g typescript
$ ts -v
IDE
Grailsintegration
✤ Manual with console ($ ts path/to/your/ts/file)
✤ IDE compilation
✤ TypeScript Resource plugin
Resourceplugin
Questions???
Thanks for your
attention!

Weitere ähnliche Inhalte

Andere mochten auch

Rotary Public Relations District 9640 June 2009[1]
Rotary Public Relations District 9640 June 2009[1]Rotary Public Relations District 9640 June 2009[1]
Rotary Public Relations District 9640 June 2009[1]dbonif
 
NodeWay in my project & sails.js
NodeWay in my project & sails.jsNodeWay in my project & sails.js
NodeWay in my project & sails.jsDmytro Ovcharenko
 
Utilizing Traditional and Social Media
Utilizing Traditional and Social MediaUtilizing Traditional and Social Media
Utilizing Traditional and Social MediaBrooke Hardison
 
Tata photon outbound process
Tata photon outbound processTata photon outbound process
Tata photon outbound processritesh008
 
E bay inbound process
E bay inbound processE bay inbound process
E bay inbound processritesh008
 
Rediffdeal customer care without upfront
Rediffdeal customer care   without upfrontRediffdeal customer care   without upfront
Rediffdeal customer care without upfrontritesh008
 
Reliance order taking process
Reliance order taking processReliance order taking process
Reliance order taking processritesh008
 
Mts form filling project
Mts form filling projectMts form filling project
Mts form filling projectritesh008
 
Beeline Brand Book
Beeline   Brand BookBeeline   Brand Book
Beeline Brand Bookirino4444ka
 

Andere mochten auch (13)

Rotary Public Relations District 9640 June 2009[1]
Rotary Public Relations District 9640 June 2009[1]Rotary Public Relations District 9640 June 2009[1]
Rotary Public Relations District 9640 June 2009[1]
 
NodeWay in my project & sails.js
NodeWay in my project & sails.jsNodeWay in my project & sails.js
NodeWay in my project & sails.js
 
Go Revel Gooo...
Go Revel Gooo...Go Revel Gooo...
Go Revel Gooo...
 
Typescript for grails
Typescript for grailsTypescript for grails
Typescript for grails
 
Utilizing Traditional and Social Media
Utilizing Traditional and Social MediaUtilizing Traditional and Social Media
Utilizing Traditional and Social Media
 
Tata photon outbound process
Tata photon outbound processTata photon outbound process
Tata photon outbound process
 
E bay inbound process
E bay inbound processE bay inbound process
E bay inbound process
 
Rediffdeal customer care without upfront
Rediffdeal customer care   without upfrontRediffdeal customer care   without upfront
Rediffdeal customer care without upfront
 
JS performance tools
JS performance toolsJS performance tools
JS performance tools
 
Reliance order taking process
Reliance order taking processReliance order taking process
Reliance order taking process
 
Mts form filling project
Mts form filling projectMts form filling project
Mts form filling project
 
Beeline Brand Book
Beeline   Brand BookBeeline   Brand Book
Beeline Brand Book
 
Meteor
MeteorMeteor
Meteor
 

Ähnlich wie Typescript for grails for pacemaker conf

Building End-to-End Apps Using Typescript
Building End-to-End Apps Using TypescriptBuilding End-to-End Apps Using Typescript
Building End-to-End Apps Using TypescriptGil Fink
 
gRPC & Kubernetes
gRPC & KubernetesgRPC & Kubernetes
gRPC & KubernetesKausal
 
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)
Real-world polyglot programming on the JVM  - Ben Summers (ONEIS)Real-world polyglot programming on the JVM  - Ben Summers (ONEIS)
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)jaxLondonConference
 
Getting Started with TypeScript
Getting Started with TypeScriptGetting Started with TypeScript
Getting Started with TypeScriptGil Fink
 
Building End to-End Web Apps Using TypeScript
Building End to-End Web Apps Using TypeScriptBuilding End to-End Web Apps Using TypeScript
Building End to-End Web Apps Using TypeScriptGil Fink
 
End-to-End SPA Development using TypeScript
End-to-End SPA Development using TypeScriptEnd-to-End SPA Development using TypeScript
End-to-End SPA Development using TypeScriptGil Fink
 
Learning JavaScript Programming
Learning JavaScript ProgrammingLearning JavaScript Programming
Learning JavaScript ProgrammingHriday Ahmed
 
Groovy in the Enterprise - Case Studies - TSSJS Prague 2008 - Guillaume Laforge
Groovy in the Enterprise - Case Studies - TSSJS Prague 2008 - Guillaume LaforgeGroovy in the Enterprise - Case Studies - TSSJS Prague 2008 - Guillaume Laforge
Groovy in the Enterprise - Case Studies - TSSJS Prague 2008 - Guillaume LaforgeGuillaume Laforge
 
Typescript - why it's awesome
Typescript - why it's awesomeTypescript - why it's awesome
Typescript - why it's awesomePiotr Miazga
 
Introduction To Groovy 2005
Introduction To Groovy 2005Introduction To Groovy 2005
Introduction To Groovy 2005Tugdual Grall
 
Event-driven IO server-side JavaScript environment based on V8 Engine
Event-driven IO server-side JavaScript environment based on V8 EngineEvent-driven IO server-side JavaScript environment based on V8 Engine
Event-driven IO server-side JavaScript environment based on V8 EngineRicardo Silva
 
How to make Ajax work for you
How to make Ajax work for youHow to make Ajax work for you
How to make Ajax work for youSimon Willison
 
Getting Started with the TypeScript Language
Getting Started with the TypeScript LanguageGetting Started with the TypeScript Language
Getting Started with the TypeScript LanguageGil Fink
 
Evolving The Java Language
Evolving The Java LanguageEvolving The Java Language
Evolving The Java LanguageQConLondon2008
 
Typescript is the best by Maxim Kryuk
Typescript is the best by Maxim KryukTypescript is the best by Maxim Kryuk
Typescript is the best by Maxim KryukGlobalLogic Ukraine
 
Node.js vs Play Framework (with Japanese subtitles)
Node.js vs Play Framework (with Japanese subtitles)Node.js vs Play Framework (with Japanese subtitles)
Node.js vs Play Framework (with Japanese subtitles)Yevgeniy Brikman
 

Ähnlich wie Typescript for grails for pacemaker conf (20)

Building End-to-End Apps Using Typescript
Building End-to-End Apps Using TypescriptBuilding End-to-End Apps Using Typescript
Building End-to-End Apps Using Typescript
 
gRPC & Kubernetes
gRPC & KubernetesgRPC & Kubernetes
gRPC & Kubernetes
 
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)
Real-world polyglot programming on the JVM  - Ben Summers (ONEIS)Real-world polyglot programming on the JVM  - Ben Summers (ONEIS)
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)
 
Getting Started with TypeScript
Getting Started with TypeScriptGetting Started with TypeScript
Getting Started with TypeScript
 
Clojure class
Clojure classClojure class
Clojure class
 
Building End to-End Web Apps Using TypeScript
Building End to-End Web Apps Using TypeScriptBuilding End to-End Web Apps Using TypeScript
Building End to-End Web Apps Using TypeScript
 
End-to-End SPA Development using TypeScript
End-to-End SPA Development using TypeScriptEnd-to-End SPA Development using TypeScript
End-to-End SPA Development using TypeScript
 
Learning JavaScript Programming
Learning JavaScript ProgrammingLearning JavaScript Programming
Learning JavaScript Programming
 
Groovy in the Enterprise - Case Studies - TSSJS Prague 2008 - Guillaume Laforge
Groovy in the Enterprise - Case Studies - TSSJS Prague 2008 - Guillaume LaforgeGroovy in the Enterprise - Case Studies - TSSJS Prague 2008 - Guillaume Laforge
Groovy in the Enterprise - Case Studies - TSSJS Prague 2008 - Guillaume Laforge
 
Typescript - why it's awesome
Typescript - why it's awesomeTypescript - why it's awesome
Typescript - why it's awesome
 
Introduction to TypeScript
Introduction to TypeScriptIntroduction to TypeScript
Introduction to TypeScript
 
Introduction To Groovy 2005
Introduction To Groovy 2005Introduction To Groovy 2005
Introduction To Groovy 2005
 
OpenLogic
OpenLogicOpenLogic
OpenLogic
 
Event-driven IO server-side JavaScript environment based on V8 Engine
Event-driven IO server-side JavaScript environment based on V8 EngineEvent-driven IO server-side JavaScript environment based on V8 Engine
Event-driven IO server-side JavaScript environment based on V8 Engine
 
How to make Ajax work for you
How to make Ajax work for youHow to make Ajax work for you
How to make Ajax work for you
 
Getting Started with the TypeScript Language
Getting Started with the TypeScript LanguageGetting Started with the TypeScript Language
Getting Started with the TypeScript Language
 
Evolving The Java Language
Evolving The Java LanguageEvolving The Java Language
Evolving The Java Language
 
Typescript is the best by Maxim Kryuk
Typescript is the best by Maxim KryukTypescript is the best by Maxim Kryuk
Typescript is the best by Maxim Kryuk
 
Typescript is the best
Typescript is the bestTypescript is the best
Typescript is the best
 
Node.js vs Play Framework (with Japanese subtitles)
Node.js vs Play Framework (with Japanese subtitles)Node.js vs Play Framework (with Japanese subtitles)
Node.js vs Play Framework (with Japanese subtitles)
 

Typescript for grails for pacemaker conf