Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
So Easy You Can Even Do It In JavaScript: Event...
Search
PyCon 2013
March 16, 2013
Programming
4
3.4k
So Easy You Can Even Do It In JavaScript: Event-Driven Architecture For Regular Programmers by Glyph
PyCon 2013
March 16, 2013
Tweet
Share
More Decks by PyCon 2013
See All by PyCon 2013
Bayesian statistics made simple by Allen Downey
pyconslides
32
6.4k
Python for Humans
pyconslides
40
6.7k
Contribute with me! Getting started with the tools of free software development by Jessica McKellar
pyconslides
11
2k
ApplePy: An Apple ][ emulator in Python by James Tauber
pyconslides
3
1.6k
Use curses, don't swear by Sean Zicari
pyconslides
2
1.5k
Namespaces in Python by Eric Snow
pyconslides
9
1.9k
Internationalization and Localization Done Right by Ruchi Varshney
pyconslides
9
1.2k
"Good Enough" is good enough! by Alex Martelli
pyconslides
13
2.6k
Plover: Thought to Text at 240 WPM by Mirabai Knight
pyconslides
1
1.3k
Other Decks in Programming
See All in Programming
testingを眺める
matumoto
1
110
AIエージェント開発、DevOps and LLMOps
ymd65536
1
350
DockerからECSへ 〜 AWSの海に出る前に知っておきたいこと 〜
ota1022
5
1.8k
あのころの iPod を どうにか再生させたい
orumin
2
2.5k
サイトを作ったらNFCタグキーホルダーを爆速で作れ!
yuukis
0
520
マイコンでもRustのtestがしたい その2/KernelVM Tokyo 18
tnishinaga
2
2.3k
Jakarta EE Core Profile and Helidon - Speed, Simplicity, and AI Integration
ivargrimstad
0
210
エンジニアのための”最低限いい感じ”デザイン入門
shunshobon
0
130
フロントエンドのmonorepo化と責務分離のリアーキテクト
kajitack
2
140
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
200
ソフトウェアテスト徹底指南書の紹介
goyoki
1
110
Understanding Ruby Grammar Through Conflicts
yui_knk
1
140
Featured
See All Featured
Done Done
chrislema
185
16k
Six Lessons from altMBA
skipperchong
28
4k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Side Projects
sachag
455
43k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
110
20k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
6k
Designing for Performance
lara
610
69k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
For a Future-Friendly Web
brad_frost
179
9.9k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
Transcript
EVENT DRIVEN ARCHITECTURE It Is The Hardest Thing You Will
Never Figure it Out I Mean What Does “Asynchronous” Even Mean Is That Even A Real Word Saturday, March 16, 13
EVENT DRIVEN ARCHITECTURE For Regular Programmers Saturday, March 16, 13
EVENT DRIVEN ARCHITECTURE So Easy You Can Even Do It
In JavaScript Saturday, March 16, 13
W ARNING Saturday, March 16, 13
THINGS THAT ARE HARD IN JAVASCRIPT Saturday, March 16, 13
• Comparing Arrays THINGS THAT ARE HARD IN JAVASCRIPT Saturday,
March 16, 13
• Comparing Arrays • Adding Numbers THINGS THAT ARE HARD
IN JAVASCRIPT Saturday, March 16, 13
• Comparing Arrays • Adding Numbers • Defining Types THINGS
THAT ARE HARD IN JAVASCRIPT Saturday, March 16, 13
• Comparing Arrays • Adding Numbers • Defining Types •
Loading Modules THINGS THAT ARE HARD IN JAVASCRIPT Saturday, March 16, 13
THINGS THAT ARE EASY IN JAVASCRIPT Saturday, March 16, 13
• Calling Functions THINGS THAT ARE EASY IN JAVASCRIPT Saturday,
March 16, 13
• Calling Functions • Handling Events THINGS THAT ARE EASY
IN JAVASCRIPT Saturday, March 16, 13
THE ONLY THING THAT IS EASY IN JAVASCRIPT CALLING FUNCTIONS
Saturday, March 16, 13
A TALE OF TWO EVENTS • ASYNCHRONOUS I/O • CLICKY
BUTTONS Saturday, March 16, 13
A TALE OF TWO EVENTS • CLICKY BUTTONS • ASYNCHRONOUS
I/O Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
? ? ? Saturday, March 16, 13
When X ↓ Do Y Saturday, March 16, 13
When a REST API service endpoint result for the requested
data is available ↓ Do manipulate a model object of the appropriate type based on that data Saturday, March 16, 13
When I Click ↓ Do Say “Hi” Saturday, March 16,
13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
PyJS http://pyjs.org/ Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
NUMBER GUESSER binary search as implemented by human user Saturday,
March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
JAN KEN PON the ultimate distillation of human conflict Saturday,
March 16, 13
Saturday, March 16, 13
TWISTED http://twistedmatrix.com Saturday, March 16, 13
KLEIN https://github.com/twisted/klein Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
Saturday, March 16, 13
WHAT IS EVENT DRIVEN an event is just a function
call that you asked for Saturday, March 16, 13
THINK OF A FUNCTION what do you want to happen?
Saturday, March 16, 13
WHEN THE USER CLICKS THIS BUTTON please call this function
Saturday, March 16, 13
WHEN THE USER ANSWERS THIS QUESTION please call this function
Saturday, March 16, 13
WHEN THE NETWORK ANSWERS THIS QUESTION please call this function
Saturday, March 16, 13
WHEN THE NETWORK SENDS ME SOME DATA please call this
function Saturday, March 16, 13
THE NETWORK IS JUST A USER on the other side
of the planet or on the other side of the screen Saturday, March 16, 13
THANK YOU Saturday, March 16, 13
Saturday, March 16, 13