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
Slideshow view
Report
Share
Slideshow view
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
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
OnBoard
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
2toLead Limited
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
gurkirankumar98700
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
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
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
Recently uploaded
(20)
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Slack Application Development 101 Slides
Slack Application Development 101 Slides
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
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