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
Webmachine (Ruby)
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Paweł Pacana
March 12, 2013
Programming
1
320
Webmachine (Ruby)
presented on KRUG
Paweł Pacana
March 12, 2013
Tweet
Share
More Decks by Paweł Pacana
See All by Paweł Pacana
DRUG Facts
pawelpacana
2
250
Other Decks in Programming
See All in Programming
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
210
AWS Infrastructure as Code の新機能 2025 総まとめ 〜SA 4人による怒涛のデモ祭り〜
konokenj
10
3.2k
Unity6.3 AudioUpdate
cova8bitdots
0
110
CSC307 Lecture 11
javiergs
PRO
0
590
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
230
Go Conference mini in Sendai 2026 : Goに新機能を提案し実装されるまでのフロー徹底解説
yamatoya
0
520
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
220
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
9
2.6k
AIとペアプロして処理時間を97%削減した話 #pyconshizu
kashewnuts
1
210
AI時代のソフトウェア開発でも「人が仕様を書く」から始めよう-医療IT現場での実践とこれから
koukimiura
0
140
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
15
8.1k
手戻りゼロ? Spec Driven Developmentとは@KAG AI week
tmhirai
1
170
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
75
11k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Code Review Best Practice
trishagee
74
20k
Google's AI Overviews - The New Search
badams
0
930
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
180
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.8k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
190
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
760
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
380
Music & Morning Musume
bryan
47
7.1k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
250
Transcript
WEBMACHINE THE HTTP TOOLKIT IN RUBY @pawelpacana
I’m not a native speaker DISCLAIMER
HTTP 1.1 SPEC RFC2616
TOOLKIT • „A toolkit for easily creating well- behaved HTTP
applications” • not a framework • Sinatra vs. Rails • extracted from Riak
RACK INTERFACE app = proc { |env| [ 200, #
Status {'Content-Type' => 'text/plain'}, # Headers ["Hello World!"] # Body ] }
RACK MIDDLEWARE • Head, ContentLength, ContentType, Deflater, …
HTTP IS HARD
WEBMACHINE • FSM modelling HTTP • negotiate hard decisions transparently
HTTP IS RESOURCES • data or service • identified by
URI • representations
WEBMACHINE • resources as a core building block • declare
resources, don’t perform actions • resource callbacks
EXAMPLES show me the code
ADAPTERS • WEBrick • Mongrel • Rack* • Reel •
Hatetepe
ECOSYSTEM • webmachine-test • webmachine-linking • webmachine-actionview • webmachine-sprockets •
irwebmachine
MY OBSERVATIONS • good as HTTP content delivery mechanism in
Ports and Adapters architecture • good for Hypermedia APIs • small enough to read and trust it
GOING DEEPER http://bit.ly/resources-for-real-this-time
THANK YOU @pawelpacana
DRUG #40 NEXT MONDAY 19:00 http://drug.org.pl