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
Web Applications & You
Search
Will Cosgrove
March 26, 2012
Programming
170
6
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Web Applications & You
A really simple intro to rails I presented to a high school CS class
Will Cosgrove
March 26, 2012
Other Decks in Programming
See All in Programming
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
120
[PyCon KR 2026] More Variants, More Diversity for AI Accelerators
achimnol
0
110
Go を使い始めて 2 ヶ月の学び / My first two months with Go
contour_gara
0
380
【QA Test Talk Vol.8】AI-DLC による Whole Team Approach の加速
pkshadeck
PRO
0
240
使いながら育てる Claude Code — 開発フローの1コマンド化 × 繰り返し指摘の自動仕組み化
shiki_kakaku
1
2k
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
500
Go 1.27からのGODEBUG / Go 1.27 リリースパーティ #go127party
mazrean
0
210
書籍「プロフェッショナルAI駆動開発」紹介スライド
juntaromatsumoto
0
520
Loosening the Reins: Go Generics Get More Flexible
kuro_kurorrr
0
320
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
230
How I Won Prize Money at a Hackathon Using Codex and Symphony Alpha
yasei_no_otoko
0
120
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
580
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
The Cost Of JavaScript in 2023
addyosmani
55
10k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Test your architecture with Archunit
thirion
2
2.4k
Bash Introduction
62gerente
615
220k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.2k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
260
My Coaching Mixtape
mlcsv
0
270
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
790
Side Projects
sachag
455
43k
Transcript
Web Applications &you
What is a web application?
A web app is dynamic
dynamic websites are
dynamic websites are • different for each user
dynamic websites are • different for each user • usually
database backed
dynamic websites are • different for each user • usually
database backed • usually have a way to log in
what is a static website?
what is a static website? same for everyone
static websites are easy
congratulations you made a website
but Will, web app? what about a
pick a framework, any framework • Ruby on Rails •
Django • CakePHP • Sinatra • Play!
rails, I choose you!
good for? what is rails
really fast development make a blog in under 10 minutes
clean, structured code REST and CRUD and DRY oh my!
database agnostic rails talks to the database so you don’t
have to
4 there are key concepts
models
models map to the database posts id title body created_at
1 2 3 test lorem hello this i... ipsum world 03-25-12 03-26-12 03-26-12 database columns become instance variables with getter and setter methods
models contain validations validates :title, presence: true validates :password, length:
{ minimum: 6 } validates :email, format: /email_regex/
views
views are what the user sees the default template language
is ERB (embedded ruby), which is a superset of HTML
views are what the user sees <%= titleize @post.title %>
<% @post.each do |post| %> ... <% end %>
routes
routes are simple routes connect url paths /posts/:id/edit posts#edit to
controller actions
controllers
controllers connect the models and views view controller model db
user routes
a lot you just learned
now lets make a blog
resources for learning more • RailsCasts (railscasts.com) • Rails for
Zombies (railsforzombies.com) • PeepCode (peepcode.com) • Pragmatic Programmer (pragprog.com)
thanks for your time :)
[email protected]
{ twitter { github