Submit Search
Upload
Coffee Scriptでenchant.js
•
Download as KEY, PDF
•
2 likes
•
6,845 views
Naoyuki Totani
Follow
enchant.js meetup!大阪での発表資料
Read less
Read more
Technology
Education
Report
Share
Report
Share
1 of 32
Download now
Recommended
FunScript 2013 (with speakers notes)
FunScript 2013 (with speakers notes)
Zach Bray
Hw09 Hadoop + Clojure
Hw09 Hadoop + Clojure
Cloudera, Inc.
Hadoop + Clojure
Hadoop + Clojure
elliando dias
Fertile Ground: The Roots of Clojure
Fertile Ground: The Roots of Clojure
Mike Fogus
Coding in Style
Coding in Style
scalaconfjp
front-end dev
front-end dev
Paul Comanici
Code as data as code.
Code as data as code.
Mike Fogus
ScalaMeter 2014
ScalaMeter 2014
Aleksandar Prokopec
Recommended
FunScript 2013 (with speakers notes)
FunScript 2013 (with speakers notes)
Zach Bray
Hw09 Hadoop + Clojure
Hw09 Hadoop + Clojure
Cloudera, Inc.
Hadoop + Clojure
Hadoop + Clojure
elliando dias
Fertile Ground: The Roots of Clojure
Fertile Ground: The Roots of Clojure
Mike Fogus
Coding in Style
Coding in Style
scalaconfjp
front-end dev
front-end dev
Paul Comanici
Code as data as code.
Code as data as code.
Mike Fogus
ScalaMeter 2014
ScalaMeter 2014
Aleksandar Prokopec
The Groovy Way
The Groovy Way
Gabriel Dogaru
ScalaBlitz
ScalaBlitz
Aleksandar Prokopec
Introduction kot iin
Introduction kot iin
Jedsada Tiwongvokul
The secrets of inverse brogramming
The secrets of inverse brogramming
Richie Cotton
Introduction to Scala
Introduction to Scala
Aleksandar Prokopec
What can be done with Java, but should better be done with Erlang (@pavlobaron)
What can be done with Java, but should better be done with Erlang (@pavlobaron)
Pavlo Baron
JavaOne 2013 - Clojure for Java Developers
JavaOne 2013 - Clojure for Java Developers
Jan Kronquist
The Macronomicon
The Macronomicon
Mike Fogus
An Exploration of the Formal Properties of PromQL
An Exploration of the Formal Properties of PromQL
Brian Brazil
Clojure for Java developers - Stockholm
Clojure for Java developers - Stockholm
Jan Kronquist
Scala - den smarta kusinen
Scala - den smarta kusinen
Redpill Linpro
(map Clojure everyday-tasks)
(map Clojure everyday-tasks)
Jacek Laskowski
ddd+scala
ddd+scala
潤一 加藤
Continuation Passing Style and Macros in Clojure - Jan 2012
Continuation Passing Style and Macros in Clojure - Jan 2012
Leonardo Borges
Turtle Graphics in Groovy
Turtle Graphics in Groovy
Jim Driscoll
Linguistic Symbiosis between Actors and Threads
Linguistic Symbiosis between Actors and Threads
ESUG
Millionways
Millionways
Brian Lonsdorf
Scala - fra newbie til ninja på en time
Scala - fra newbie til ninja på en time
karianneberg
The Ring programming language version 1.10 book - Part 45 of 212
The Ring programming language version 1.10 book - Part 45 of 212
Mahmoud Samir Fayed
Functional Patterns for the non-mathematician
Functional Patterns for the non-mathematician
Brian Lonsdorf
FITC CoffeeScript 101
FITC CoffeeScript 101
Faisal Abid
CoffeeScript
CoffeeScript
None
More Related Content
What's hot
The Groovy Way
The Groovy Way
Gabriel Dogaru
ScalaBlitz
ScalaBlitz
Aleksandar Prokopec
Introduction kot iin
Introduction kot iin
Jedsada Tiwongvokul
The secrets of inverse brogramming
The secrets of inverse brogramming
Richie Cotton
Introduction to Scala
Introduction to Scala
Aleksandar Prokopec
What can be done with Java, but should better be done with Erlang (@pavlobaron)
What can be done with Java, but should better be done with Erlang (@pavlobaron)
Pavlo Baron
JavaOne 2013 - Clojure for Java Developers
JavaOne 2013 - Clojure for Java Developers
Jan Kronquist
The Macronomicon
The Macronomicon
Mike Fogus
An Exploration of the Formal Properties of PromQL
An Exploration of the Formal Properties of PromQL
Brian Brazil
Clojure for Java developers - Stockholm
Clojure for Java developers - Stockholm
Jan Kronquist
Scala - den smarta kusinen
Scala - den smarta kusinen
Redpill Linpro
(map Clojure everyday-tasks)
(map Clojure everyday-tasks)
Jacek Laskowski
ddd+scala
ddd+scala
潤一 加藤
Continuation Passing Style and Macros in Clojure - Jan 2012
Continuation Passing Style and Macros in Clojure - Jan 2012
Leonardo Borges
Turtle Graphics in Groovy
Turtle Graphics in Groovy
Jim Driscoll
Linguistic Symbiosis between Actors and Threads
Linguistic Symbiosis between Actors and Threads
ESUG
Millionways
Millionways
Brian Lonsdorf
Scala - fra newbie til ninja på en time
Scala - fra newbie til ninja på en time
karianneberg
The Ring programming language version 1.10 book - Part 45 of 212
The Ring programming language version 1.10 book - Part 45 of 212
Mahmoud Samir Fayed
Functional Patterns for the non-mathematician
Functional Patterns for the non-mathematician
Brian Lonsdorf
What's hot
(20)
The Groovy Way
The Groovy Way
ScalaBlitz
ScalaBlitz
Introduction kot iin
Introduction kot iin
The secrets of inverse brogramming
The secrets of inverse brogramming
Introduction to Scala
Introduction to Scala
What can be done with Java, but should better be done with Erlang (@pavlobaron)
What can be done with Java, but should better be done with Erlang (@pavlobaron)
JavaOne 2013 - Clojure for Java Developers
JavaOne 2013 - Clojure for Java Developers
The Macronomicon
The Macronomicon
An Exploration of the Formal Properties of PromQL
An Exploration of the Formal Properties of PromQL
Clojure for Java developers - Stockholm
Clojure for Java developers - Stockholm
Scala - den smarta kusinen
Scala - den smarta kusinen
(map Clojure everyday-tasks)
(map Clojure everyday-tasks)
ddd+scala
ddd+scala
Continuation Passing Style and Macros in Clojure - Jan 2012
Continuation Passing Style and Macros in Clojure - Jan 2012
Turtle Graphics in Groovy
Turtle Graphics in Groovy
Linguistic Symbiosis between Actors and Threads
Linguistic Symbiosis between Actors and Threads
Millionways
Millionways
Scala - fra newbie til ninja på en time
Scala - fra newbie til ninja på en time
The Ring programming language version 1.10 book - Part 45 of 212
The Ring programming language version 1.10 book - Part 45 of 212
Functional Patterns for the non-mathematician
Functional Patterns for the non-mathematician
Similar to Coffee Scriptでenchant.js
FITC CoffeeScript 101
FITC CoffeeScript 101
Faisal Abid
CoffeeScript
CoffeeScript
None
CoffeeScript
CoffeeScript
Ryan McGeary
Programming To Patterns
Programming To Patterns
guest2ee5e2c
Ian 20150116 java script oop
Ian 20150116 java script oop
LearningTech
TypeScript Introduction
TypeScript Introduction
Dmitry Sheiko
Scala 2013 review
Scala 2013 review
Sagie Davidovich
Javascript Uncommon Programming
Javascript Uncommon Programming
jeffz
Javascript best practices
Javascript best practices
Manav Gupta
Internal Project: Under the Hood
Internal Project: Under the Hood
Vladik Khononov
Jscex: Write Sexy JavaScript (中文)
Jscex: Write Sexy JavaScript (中文)
jeffz
2.1 recap from-day_one
2.1 recap from-day_one
futurespective
Object Oriented JavaScript
Object Oriented JavaScript
Julie Iskander
深入浅出Jscex
深入浅出Jscex
jeffz
Say It With Javascript
Say It With Javascript
Giovanni Scerra ☃
An Introduction to Scala (2014)
An Introduction to Scala (2014)
William Narmontas
JS OO and Closures
JS OO and Closures
Jussi Pohjolainen
Scala in practice
Scala in practice
andyrobinson8
ECMAScript 6 new features
ECMAScript 6 new features
GephenSG
Google Guava for cleaner code
Google Guava for cleaner code
Mite Mitreski
Similar to Coffee Scriptでenchant.js
(20)
FITC CoffeeScript 101
FITC CoffeeScript 101
CoffeeScript
CoffeeScript
CoffeeScript
CoffeeScript
Programming To Patterns
Programming To Patterns
Ian 20150116 java script oop
Ian 20150116 java script oop
TypeScript Introduction
TypeScript Introduction
Scala 2013 review
Scala 2013 review
Javascript Uncommon Programming
Javascript Uncommon Programming
Javascript best practices
Javascript best practices
Internal Project: Under the Hood
Internal Project: Under the Hood
Jscex: Write Sexy JavaScript (中文)
Jscex: Write Sexy JavaScript (中文)
2.1 recap from-day_one
2.1 recap from-day_one
Object Oriented JavaScript
Object Oriented JavaScript
深入浅出Jscex
深入浅出Jscex
Say It With Javascript
Say It With Javascript
An Introduction to Scala (2014)
An Introduction to Scala (2014)
JS OO and Closures
JS OO and Closures
Scala in practice
Scala in practice
ECMAScript 6 new features
ECMAScript 6 new features
Google Guava for cleaner code
Google Guava for cleaner code
More from Naoyuki Totani
コミュニケーションから逆算するゲームデザイン
コミュニケーションから逆算するゲームデザイン
Naoyuki Totani
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話
Naoyuki Totani
Live2DとCocos2d-xで恋愛ゲーム作ってみた
Live2DとCocos2d-xで恋愛ゲーム作ってみた
Naoyuki Totani
Cocos2d xゲームでuiテスト自動化
Cocos2d xゲームでuiテスト自動化
Naoyuki Totani
cocos2d-xを使った開発で効率よく多職種連携したい話
cocos2d-xを使った開発で効率よく多職種連携したい話
Naoyuki Totani
enchant.jsにおけるチーム開発手法
enchant.jsにおけるチーム開発手法
Naoyuki Totani
More from Naoyuki Totani
(6)
コミュニケーションから逆算するゲームデザイン
コミュニケーションから逆算するゲームデザイン
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話
Live2DとCocos2d-xで恋愛ゲーム作ってみた
Live2DとCocos2d-xで恋愛ゲーム作ってみた
Cocos2d xゲームでuiテスト自動化
Cocos2d xゲームでuiテスト自動化
cocos2d-xを使った開発で効率よく多職種連携したい話
cocos2d-xを使った開発で効率よく多職種連携したい話
enchant.jsにおけるチーム開発手法
enchant.jsにおけるチーム開発手法
Recently uploaded
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
The transition to renewables in India.pdf
The transition to renewables in India.pdf
Competition Advisory Services (India) LLP
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
null - The Open Security Community
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
XfilesPro
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
Scott Keck-Warren
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Pixlogix Infotech
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
Hyundai Motor Group
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
Recently uploaded
(20)
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Slack Application Development 101 Slides
Slack Application Development 101 Slides
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The transition to renewables in India.pdf
The transition to renewables in India.pdf
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Coffee Scriptでenchant.js
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
var bitlist, kids,
singers, song; song = ["do", "re", "mi", "fa", "so"] song = ["do", "re", "mi", "fa", "so"]; singers = {Jagger: "Rock", Elvis: "Roll"} singers = { Jagger: "Rock", bitlist = [ Elvis: "Roll" 1, 0, 1 }; 0, 0, 1 1, 1, 0 bitlist = [1, 0, 1, 0, 0, 1, 1, 1, 0]; ] kids = { kids = brother: { brother: name: "Max", name: "Max" age: 11 age: 11 }, sister: sister: { name: "Ida" name: "Ida", age: 9 age: 9 } };
19.
var cube, square;
square = function(x) { return x * x; square = (x) -> x * x }; cube = (x) -> square(x) * x cube = function(x) { return square(x) * x; };
20.
var Animal, Horse,
Snake, sam, tom; // js Animal = (function() { function Animal(name) { this.name = name; } Animal.prototype.move = function(meters) { return alert(this.name + (" moved " + meters + "m.")); class Animal }; constructor: (@name) -> return Animal; })(); move: (meters) -> alert @name + " moved #{meters}m." Snake = (function() { __extends(Snake, Animal); class Snake extends Animal function Snake() { move: -> alert "Slithering..." Snake.__super__.constructor.apply(this, super 5 arguments); } Snake.prototype.move = function() { alert("Slithering..."); return Snake.__super__.move.call(this, 5); }; return Snake; })();
21.
22.
23.
24.
25.
enchant.Class.create(enchant.Scene, { class SceneMain
extends enchant.Scene initialize: function() { constructor: () -> enchant.Scene.call(this); super() } });
26.
var constructor =
function() { __extends = function(child, parent) { if (this instanceof constructor) { for (var key in parent) { constructor.prototype.initialize.apply(this if (__hasProp.call(parent, key)) } else { child[key] = parent[key]; return new constructor(); } } function ctor() { }; this.constructor = child; constructor.prototype = Object.create(superclas } constructor.prototype.constructor = constructor ctor.prototype = parent.prototype; if (constructor.prototype.initialize == null) { child.prototype = new ctor; constructor.prototype.initialize = function() child.__super__ = parent.prototype; superclass.apply(this, arguments); return child; }; }; } return constructor;
27.
var Hoge =
enchant.Class.create({ name: { class Hoge get: function() { name: return "tom"; get: () -> } "tom" } }); hoge = new Hoge hoge.name // Object var hoge = new Hoge(); hoge.name; // “tom”
28.
29.
30.
!
Editor's Notes
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Download now