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
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
710
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
220
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
360
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
310
Giselleで作るAI QAアシスタント 〜 Pull Requestレビューに継続的QAを
codenote
0
340
生成AI時代を勝ち抜くエンジニア組織マネジメント
coconala_engineer
0
39k
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
2
1.1k
Graviton と Nitro と私
maroon1st
0
160
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
410
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.4k
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3.4k
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
330
Featured
See All Featured
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
550
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
240
Into the Great Unknown - MozCon
thekraken
40
2.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Being A Developer After 40
akosma
91
590k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
2
3.9k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
Believing is Seeing
oripsolob
1
29
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
270
Skip the Path - Find Your Career Trail
mkilby
0
43
How STYLIGHT went responsive
nonsquared
100
6k
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