Titanium Meetup Group • Professional Software developer since 1998 So who am I? Pascal -> C -> C++ -> Perl -> Java -> Javascript -> CoffeeScript domingo, 24 de febrero de 13
30.000 Registered users #1 App Store Spain (Overall and Travel category) Featured by Apple : App of the week, “New and Noteworthy” -> We are raising money! Milestones domingo, 24 de febrero de 13
Jun 2011 • iOS release launched 1 month later. • Android release launched 2 months later. Our secret: How we did it? Appcelerator + CoffeeScript domingo, 24 de febrero de 13
Backbone.js) • “Javascript with Ruby-like syntax” • Programs can be written with less code without sacrificing runtime performance. • It compiles into clean JavaScript JSLint compliant • The Golden Rule: “it’s just JavaScript” What is CoffeeScript? domingo, 24 de febrero de 13
1.@.+, @;< G @./82 .11B2:@"6?@2:2>08607 3A:0@6;:2F 632 ?;A>02 61>29;B2A@@;:F @./82 1282@2%;C2 6:12D G G • Nice Syntax • Don’t need to declare variables domingo, 24 de febrero de 13
1.@.+, @;< G @./82 .11B2:@"6?@2:2>08607 3A:0@6;:2F 632 ?;A>02 61>29;B2A@@;:F @./82 1282@2%;C2 6:12D G G • Nice Syntax • Don’t need to declare variables domingo, 24 de febrero de 13
0A/2?3A:0@6;:F B.>-6 -82: ->2?A8@? ->2?A8@?+, 3;>-6 -82:86?@ 82:4@5-6-82:-6 F :A986?@+-6, ->2?A8@? <A?59.@5 0A/2:A9 G >2@A>:->2?A8@? G domingo, 24 de febrero de 13
3A:0@6;:F B.>'./>;A< *6:1;C *6:1;C>2=A6>2A6 <<860.@6;:*6:1;C './>;A<>2=A6>2A6 <<860.@6;:'./>;A< :2C'./>;A<*6:1;C ;<2: G 0.88@56? domingo, 24 de febrero de 13
7:2C6@6328B6? if (typeof elvis !== "undefined" && elvis !== null) { alert("I knew it!"); } if foo?.bar then console.log foo.bar if (typeof foo !== “undefined” && !== null && foo.bar) <2>?;::2C$2>?;:H%;/2>@;I H68I domingo, 24 de febrero de 13
You need Node.js and npm (node package manager): $ npm install -g coffee-script 2. Create new Titanium Project and add build.sh file to compile the *.coffee files domingo, 24 de febrero de 13