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
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
[RubyKaigi 2026] Require Hooks
palkan
1
290
Symfony AI in Action - SymfonyLive Berlin 2026
chr_hertel
1
120
Programming with a DJ Controller — not vibe coding
m_seki
3
780
Kubernetesを使わない環境にもCloud Nativeなデプロイを実現する / Enabling Cloud Native deployments without the complexity of Kubernetes
linyows
2
270
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
130
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
140
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
360
Agentic Elixir
whatyouhide
0
440
Vibe NLP for Applied NLP
inesmontani
PRO
0
600
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
320
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
170
第3木曜LT会 #28
tinykitten
PRO
0
120
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
960
The Language of Interfaces
destraynor
162
26k
The Curse of the Amulet
leimatthew05
1
12k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3k
Crafting Experiences
bethany
1
140
Exploring anti-patterns in Rails
aemeredith
3
350
KATA
mclloyd
PRO
35
15k
Git: the NoSQL Database
bkeepers
PRO
432
67k
HDC tutorial
michielstock
2
650
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.7k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
270
Building Flexible Design Systems
yeseniaperezcruz
330
40k
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