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.3k
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.3k
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.8k
Internationalization and Localization Done Right by Ruchi Varshney
pyconslides
9
1.1k
"Good Enough" is good enough! by Alex Martelli
pyconslides
13
2.5k
Plover: Thought to Text at 240 WPM by Mirabai Knight
pyconslides
1
1.2k
Other Decks in Programming
See All in Programming
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
890
アクターシステムに頼らずEvent Sourcingする方法について
j5ik2o
6
670
Go の GC の不得意な部分を克服したい
taiyow
3
980
ChatGPT とつくる PHP で OS 実装
memory1994
PRO
3
160
Effective Signals in Angular 19+: Rules and Helpers
manfredsteyer
PRO
0
340
各クラウドサービスにおける.NETの対応と見解
ymd65536
0
230
103 Early Hints
sugi_0000
1
330
fs2-io を試してたらバグを見つけて直した話
chencmd
0
280
月刊 競技プログラミングをお仕事に役立てるには
terryu16
1
1.1k
Package Traits
ikesyo
1
130
Оптимизируем производительность блока Казначейство
lamodatech
0
870
GitHub CopilotでTypeScriptの コード生成するワザップ
starfish719
26
5.8k
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
222
9k
Making Projects Easy
brettharned
116
6k
Code Reviewing Like a Champion
maltzj
521
39k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
How GitHub (no longer) Works
holman
312
140k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Rails Girls Zürich Keynote
gr2m
94
13k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Side Projects
sachag
452
42k
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