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
6
160
Web Applications & You
A really simple intro to rails I presented to a high school CS class
Will Cosgrove
March 26, 2012
Tweet
Share
Other Decks in Programming
See All in Programming
Documentation testsの恩恵 / Documentation testing benefits
ssssota
1
560
Fragment Composition of GraphQL
quramy
14
1.7k
CDKコントリビュートの最初の壁を越えよう! -簡単issueの見つけ方-
badmintoncryer
3
420
TSKaigi 2024 - 新サービス Progate Path の演習で TypeScript を採用して見えた教材観点からの利点と課題
makotoshimazu
1
220
Introducing Kotlin Multiplatform in an existing mobile app - Workshop Edition | AndroidMakers Paris
prof18
0
180
FoodGram
iseruuuuu
0
230
TypeScriptでもLLMアプリケーション開発 / LLM Application In Typescript
rkaga
5
1.3k
戦略的DDDは重いのか? / Is strategic DDD heavy?
pictiny
3
2.1k
AmperとFleetを使ったAndroidアプリ
yoppie
0
300
株式会社ゼネテック
genetec
0
120
WinActorの勉強を継続する方法
tamai_63
0
130
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
13
4.3k
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
60
4k
jQuery: Nuts, Bolts and Bling
dougneiner
60
7.2k
Atom: Resistance is Futile
akmur
260
25k
Optimising Largest Contentful Paint
csswizardry
13
2.4k
Happy Clients
brianwarren
92
6.4k
Debugging Ruby Performance
tmm1
70
11k
What's in a price? How to price your products and services
michaelherold
238
11k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Designing with Data
zakiwarfel
96
4.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
123
39k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
21
2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
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