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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
wtnabe
October 17, 2015
Programming
0
430
Hello Rails and more
Kanazawa.rb meetup #38 Rails ハンズオン初級編のイントロ
wtnabe
October 17, 2015
Tweet
Share
More Decks by wtnabe
See All by wtnabe
Rubyでもモノリポしたい - 調査、おわわり編 -
wtnabe
0
28
Ruby de Railway Oriented Programming
wtnabe
0
61
Bindanのススメ
wtnabe
0
41
そのオブジェクト、何を保証してくれますか? - GuideRailのススメ -
wtnabe
0
55
Effective Jekyll
wtnabe
0
84
5 min Jekyll/Liquid Plugin cooking
wtnabe
0
46
Ruby de Wasm
wtnabe
0
75
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
61
Decoupled System with Turbo Frame
wtnabe
1
150
Other Decks in Programming
See All in Programming
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
440
CSC307 Lecture 03
javiergs
PRO
1
490
MUSUBIXとは
nahisaho
0
140
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
210
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
500
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
990
Oxlintはいいぞ
yug1224
5
1.4k
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
380
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
920
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
What does AI have to do with Human Rights?
axbom
PRO
0
2k
Statistics for Hackers
jakevdp
799
230k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
240
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
440
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
140
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
170
Chasing Engaging Ingredients in Design
codingconduct
0
120
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 !