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
SourceGeneratorのススメ
htkym
0
190
Fragmented Architectures
denyspoltorak
0
150
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
410
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
220
CSC307 Lecture 07
javiergs
PRO
0
550
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
190
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.3k
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
400
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
Grafana:建立系統全知視角的捷徑
blueswen
0
330
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
AI時代の認知負荷との向き合い方
optfit
0
150
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
2.2M
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
290
RailsConf 2023
tenderlove
30
1.3k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
200
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Skip the Path - Find Your Career Trail
mkilby
0
54
Visualization
eitanlees
150
17k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
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