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
Hello Rails and more
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
wtnabe
October 17, 2015
Programming
440
0
Share
Hello Rails and more
Kanazawa.rb meetup #38 Rails ハンズオン初級編のイントロ
wtnabe
October 17, 2015
More Decks by wtnabe
See All by wtnabe
Rubyでもモノリポしたい - 調査、おわわり編 -
wtnabe
0
45
Ruby de Railway Oriented Programming
wtnabe
0
91
Bindanのススメ
wtnabe
0
58
そのオブジェクト、何を保証してくれますか? - GuideRailのススメ -
wtnabe
0
73
Effective Jekyll
wtnabe
0
95
5 min Jekyll/Liquid Plugin cooking
wtnabe
0
58
Ruby de Wasm
wtnabe
0
90
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
73
Decoupled System with Turbo Frame
wtnabe
1
170
Other Decks in Programming
See All in Programming
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
110
Moments When Things Go Wrong
aurimas
3
110
[BalkanRuby 2026] Drop your app/services!
palkan
3
660
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
200
20260514_its_the_context_window_stupid.pdf
heita
0
1.1k
デフォルト運用のCodeRabbit、1年で何が変わったか / How CodeRabbit Changed Our Code Review in 1 Year
bake0937
1
100
ReactとSvelteのその先、Ripple-TS / Beyond React and Svelte: Ripple-TS
ssssota
3
690
Oxlintはいかにしてtsgolintのlint ruleを呼び出しているのか
syumai
1
470
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
3
570
関係性から理解する"同一性"の型用語たち
pvcresin
2
510
cloudnative conference 2026 flyle
azihsoyn
1
200
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
980
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
510
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
150
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
360
Exploring anti-patterns in Rails
aemeredith
3
360
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
The Curse of the Amulet
leimatthew05
1
12k
Mind Mapping
helmedeiros
PRO
1
200
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
340
Rails Girls Zürich Keynote
gr2m
96
14k
Transcript
Railsハンズオン初級編 Rails的なモダン開発の本当のよさを知り体験しよう @wtnabe Kanazawa.rb meetup #38 2015-10-17 (Sat) at DMM.com
Labo
お品書き Railsの10年と周辺の歩み Railsの特⻑と活かし⽅ 今⽇の内容
Railsの10年と周辺の歩み
2004 Gmail / PHP 5.0 2004 first public release of
Rails 2005 GoogleMaps 2005 Rails 1.0 ( including Prototype.js ) 2005 Selenium RC 2005 Hudson ( Jenkins )
2006 Capistrano 2006 AWS S3 and EC2 ( beta )
2006 jQuery 2006 Sass 2007 Rack ( WSGI Ruby port ) 2008 Github ( Rails moved to )
2009 Bundler 2009 Ruby 1.9.1 2009 CoffeeScript 2010 Rails 2.3
( Rack / Bundler ) 2010 Rails 3.0 ( merged Merb ) 2010 Backbone.js
2010 Scss 2011 Rails 3.1 ( AssetPipeline ) 2011 Heroku
Procfile 2012 Travis CI 2013 Ruby 2.1.0 / Rails 4.0 2014 Ruby 2.2.0 / EOL of 1.8.7, 1.9.2
MVCとDB migration
Capistranoによるdeployの⾃動化
Bundlerによる依存性解決
Asset管理 ( precompile & reduce http connections )
CIからの⾃動deploy
Rails Leads ... DRY & CoC DB migration ⾃動deploy (
Capistrano ) 依存性解決 ( Bundler ) PaaS ( Heroku, ... ) Asset管理 ( CoffeeScript, Sass, ... )
いま分からなくても平気
知ってると他の⾔語でも だいたい役に⽴ちます
イマドキだいたい モダンなWeb開発は こんな感じ
Railsの特⻑と活かし⽅
Railsの特⻑ ⼤事なことだけに集中しよう 設定を減らす 同じこと何度も書かない ⾃動化 よさそうなものは取り⼊れよう ダメならやめよう アジリティ
Railsの活かし⽅ Rails is omakase (DHH) 独⾃の技を編み出さない みんな合わせてるからこその便利gems
確かに最初は 覚えるべきお約束は多い
だから今⽇は ちょっとだけやります
何度もおさらいしてね
Railsがいちばん真価を 発揮するのはver.1を とにかく早く出す時 (最⼩限のコードで)
雑に書くのではなく アリモノを上⼿に活かして スピードを上げる
コードは少ないほど 変化のスピードを保てる
⼤事なのは 変化のスピードを 落とさないこと
※ 私⾒です
今⽇の内容
対象 動的なWebアプリの全体的な仕組みにつ いて、ある程度の理解がある⼈ 何らかのサーバサイドプログラミングの 経験が少しでもある⼈ RailsやRails-inspiredなモダンなフレー ムワークを使いこなし、考え⽅を理解し たい⼈
ゴール モダンWeb開発の考え⽅、ワークフロー を理解する scaffold + alpha で Model 2つ、 association
1つの ToDo アプリを動かす
やらないこと 本番環境へのdeploy
作るもの ToDo アプリのひな形のようなもの 1 : n 関係の Model を操作する画⾯ 応⽤課題
やること generator ( scaffold ) rails server / console partial
template db migration association
多めにやります 説明 質疑 ハンズオンとはなんだったのか?
Let's Begin !