Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
A Tale of Two Frameworks
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Sau Sheong Chang
February 19, 2014
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
A Tale of Two Frameworks
https://github.com/sausheong/server-frameworks
Sau Sheong Chang
February 19, 2014
Transcript
47 slides
A Tale of Two Frameworks Chang Sau Sheong @sausheong
“It was the best of times, it was the worst
of times …”
None
How web frameworks work
Server Client Request Response Header Body Header Body HTTP methods:
GET, POST etc Status codes: 200, 404 etc
None
Parts of a server-side web framework
Models
Routes
Views
Assets
Minimalist Sinatra + Haml + Sequel + Postgres
Alternative Cuba + Mustache + Mongoid + MongoDB
Minimalist
Least effort
Code for humans
Principle of Good Enough
Sinatra
“Domain specific language for quickly creating web applications.”
None
*HTML abstraction markup language
“Markup should be beautiful.”
%section.container %h1= post.title %h2= post.subtitle .content = post.content <section class=”container”>
<h1><%= post.title %></h1> <h2><%= post.subtitle %></h2> <div class=”content”> <%= post.content %> </div> </section>
None
None
“Ruby object relational mapper.”
None
Migrate (Create the database tables)
Model
None
Alternative
Cuba
“Ruby microframework for web development.”
Hierarchical routes
Focus on matching
None
{ Mustache
“Logic-less templates.”
There are only tags.
None
None
“Document database with JSON- styled documents.”
Mongoid
“Ruby object document mapper for MongoDB.”
None
https://github.com/sausheong/server-frameworks
Questions?
More Decks by Sau Sheong Chang
See All by Sau Sheong Chang
Genetic Algorithms with Go
sausheong
0
220
Programming Complexity
sausheong
0
1.1k
Rollicking Ruby Robots Rule the World
sausheong
0
320
3 Things You May Not Know About The Go Template Engine
sausheong
0
430
Money, Sex and Evolution (v3)
sausheong
0
140
Polyglot
sausheong
0
130
Developing Web Applications with Go
sausheong
7
880
Money, Sex and Evolution
sausheong
1
150
Ruby, Rock and Roll
sausheong
3
340
Featured
See All Featured
Code Review Best Practice
trishagee
74
20k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
A designer walks into a library…
pauljervisheath
211
25k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
Test your architecture with Archunit
thirion
2
2.5k
Building the Perfect Custom Keyboard
takai
2
960
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
530
Prompt Engineering for Job Search
mfonobong
0
590
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
1k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.8k
Automating Front-end Workflow
addyosmani
1370
210k
Evolving SEO for Evolving Search Engines
ryanjones
0
360