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
The Future is Dead: Long live the Past
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
elcuervo
June 02, 2012
Programming
1.1k
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The Future is Dead: Long live the Past
The Future is Dead: Long live the Past
elcuervo
June 02, 2012
More Decks by elcuervo
See All by elcuervo
Retro Ruby
elcuervo
0
18
Un tipo de Ruby
elcuervo
0
51
Airplay
elcuervo
0
570
Quince Primaveras
elcuervo
0
440
Apocalipsis
elcuervo
0
150
RadioFrequencia
elcuervo
0
130
TED: Cronicas de un hacker
elcuervo
0
140
Hackeando el STM
elcuervo
1
400
Teo y los contenedores
elcuervo
0
140
Other Decks in Programming
See All in Programming
関東Kaggler会_NVIDIA_Nemotron_コンペ_振り返り
rick_ds
0
780
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
710
Swift愛好会と私(ウホーイ) / Swift Fan Club and Uhooi
uhooi
0
100
이 함수, 실패하면 어떻게 되나요? null부터 Rich Errors까지, Kotlin 에러 처리 15년
haeti2
0
110
Can LLMs Replicate 4 Years of Compose Migration? Exploring the boundaries of automation with 279 XML files from a real product
makun
0
110
30年振りにコンパイラの定数整数除算を改善した
herumi
9
4.4k
書籍「プロフェッショナルAI駆動開発」紹介スライド
juntaromatsumoto
0
870
Deep dive into the select statement (GopherCon UK)
jespino
0
160
{ Android | Kotlin } Gradle Plugin in 2026
ryunen344
1
170
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
300
Webエンジニアなのにブラウザの仕組みがわからないので、Pythonで自作してみた
tatsuki12
4
1.6k
DroidKaigi 2026 「個人開発という実験場: Android エンジニアが手にする4つの自由」
slashnephy
0
170
Featured
See All Featured
The SEO Collaboration Effect
kristinabergwall1
1
540
What's in a price? How to price your products and services
michaelherold
247
13k
Mind Mapping
helmedeiros
PRO
1
340
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
680
Everyday Curiosity
cassininazir
0
300
AI: The stuff that nobody shows you
jnunemaker
PRO
9
960
The Curse of the Amulet
leimatthew05
2
14k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
550
Accessibility Awareness
sabderemane
1
190
Balancing Empowerment & Direction
lara
6
1.3k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
270
Transcript
The Future is Dead long live the past
Hi!
Bruno Aguirre
Bruno Aguirre github: elcuervo
Bruno Aguirre @cuerbot github: elcuervo
cuervo
None
None
None
None
None
None
None
None
None
None
None
disclaimer
None
relax
it’s not about this future
None
nor this past
None
None
UNIX
UNIX DB
UNIX DB WEB
UNIX
than an MORE OPERATING system
than MORE SOFTWARE
Philosophy
The ART of Unix programming Eric Raymond
Write SIMPLE parts connected by CLEAN interfaces
CLARITY is better than cleverness
Design programs to be CONNECTED to other programs
ps uax | grep ruby | sort | uniq
Design for SIMPLICITY; add complexity ONLY where you must
S R P
S R P ingle
S R P ingle esponsability
S R P ingle esponsability rinciple
PROTOTYPE before polishing. GET IT WORKING before you OPTIMIZE it
DISTRUST all claims for “ONE TRUE WAY”
Design for the FUTURE, because it will be here SOONER
than you think
KISS
KEEP
IT
SIMPLE
SWEETIE
None
“Simplicity is the ultimate sophistication” Leonardo Da Vinci 1452-1519
“Everything should be made as simple as possible, but no
simpler” Albert Einstein 1879-1955
“Unix is simple. It just takes a genius to understand
its simplicity” Dennis Ritchie 1941-2011
DB
once upon a time
RDB
ROFLSCALE
ROFLSCALE
None
POSTGRESQL
POSTGRESQL MYSQL
CONSTRAINS
None
PRIMARY KEY
PRIMARY KEY UNIQUE
PRIMARY KEY UNIQUE NOT NULL
PRIMARY KEY UNIQUE NOT NULL FOREIGN KEY
PRIMARY KEY UNIQUE NOT NULL FOREIGN KEY CHECK
PREPARED STATEMENTS
SELECT * FROM fruits WHERE id = 42;
PREPARE fruit_seeker (int) AS SELECT * FROM fruits WHERE id
= $1;
PREPARE fruit_seeker (int) AS SELECT * FROM fruits WHERE id
= $1; EXECUTE fruit_seeker(42);
~2003
QUERIES PER SECOND BOOST
~2011
STORED PROCEDURES
Execution within the database
Complex data handling
Column operations
We want to use Ruby everywhere
DON’T
WITHOUT ORM
WEB
HTTP 1.0 RFC 1945 (1996)
None
None
None
MOST WEB of the
client server request response open open close close
HTTP 1.1 RFC 2616 (1999)
None
None
None
None
Persistent connections
client server request response open close Re use open sockets
close open
client server request response open close Re use open sockets
Enabled by default
Pipelining
client server request response open close
Disabled by default
Get ready for the PAST
Firefox: can be enabled
Firefox: can be enabled Chrome: can be enabled
Firefox: can be enabled Chrome v20: enabled by default Chrome:
can be enabled
Upgrade header
GET /mychat HTTP/1.1 Host: server.example.com Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key:
x3JJHMbDL1EzLkh9GBhXDw== Sec-WebSocket-Protocol: chat Sec-WebSocket-Version: 13 Origin: http://example.com request
GET /mychat HTTP/1.1 Host: server.example.com Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key:
x3JJHMbDL1EzLkh9GBhXDw== Sec-WebSocket-Protocol: chat Sec-WebSocket-Version: 13 Origin: http://example.com request
HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: HSmrc0sMlYUkAGmm5OPpG2HaGWk=
Sec-WebSocket-Protocol: chat response
HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: HSmrc0sMlYUkAGmm5OPpG2HaGWk=
Sec-WebSocket-Protocol: chat response
That’s IT?
12 years
None
HTTP PTTH
HTTP R e v e rs e
client server
POST /reverse HTTP/1.1 Host: server.example.com Upgrade: PTTH/0.9 Connection: Upgrade Origin:
http://example.com request
POST /reverse HTTP/1.1 Host: server.example.com Upgrade: PTTH/0.9 Connection: Upgrade Origin:
http://example.com request
client server
HTTP/1.1 101 Switching Protocols Upgrade: PTTH/0.9 Connection: Upgrade response
client server
client server
server client
REAL life
None
The Future is not Dead
The Past is not Dead
None
LEARN from the past
LEARN from the past WATCH the present
LEARN from the past WATCH the present CREATE the future
Thank you!
Thank you! twitter: @cuerbot github: elcuervo
None