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
Episode 3, Write your first rails app in real w...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Deshi Xiao
October 29, 2012
Programming
270
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Episode 3, Write your first rails app in real way (Rails Starter For China Tech-Talk)
第三讲:自己动手学习第一个实战项目
lockitron/selfstarter · GitHub
Deshi Xiao
October 29, 2012
More Decks by Deshi Xiao
See All by Deshi Xiao
Rubyist and OpenSource
xds2000
0
87
Episode 1, Start Here (Rails Starter For China Tech-Talk)
xds2000
3
750
Other Decks in Programming
See All in Programming
フィードバックで育てるAI開発
kotaminato
1
110
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
360k
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
360
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.9k
地域 SRE コミュニティ最前線 - ホンマでっかSRE勉強会
tk3fftk
0
210
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
200
Signal Forms: Details & Live Coding @enterJS 2026 in Mannheim
manfredsteyer
PRO
0
220
才能?センス?知らん、 続けたもん勝ちだ。-- 結婚・出産・癌を越えてなお、私がプロダクトを創り続ける理由
16bitidol
2
810
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
500
AI時代の仕事技芸論〜ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ(スクフェス仙台 2026バージョン)
kuranuki
0
540
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
140
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
mogamit
0
160
Featured
See All Featured
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
330
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
Automating Front-end Workflow
addyosmani
1370
210k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
890
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
180
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
The SEO identity crisis: Don't let AI make you average
varn
0
510
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Transcript
第三讲:自己动手学习第一个实战项目 lockitron/selfstarter · GitHub xds2000 欢迎来 ruby-china.org 参与讨论 ruby 话题
http://xiaods.github.com/rails-starter-for-china/
学习步骤 • 下代码并用你喜欢的编辑器打开 • 通过 Gemfile 了解使用的相关类库 • 学习测试驱动,不会就跳过。 •
看 Model 了解业务模型 • 运行命令 rails server ,使用浏览器熟悉功能 • Assets 中代码的学习 • 手刻一份完全一样的项目,完成后和原项目参考对比
编辑器原则 • 'Keep it simple, stupid' (KISS principle) • VIM是
Linux, Mac环境首选推荐, GNU Emacs是膜拜的神器,你可 以用,但不要装。 • RubyMine,NetBeans是 IDE,不是编辑器。切菜用牛刀,算了,反正 现在机器都是牛机,用不用随你。 • textmate只能在 mac上使用,喜不喜欢由你说了算 • Sublime Text2 跨平台,主流系统全都支持,喜不喜欢由你说了算
Gemfile 分析方法 • 'Keep it simple, stupid' (KISS principle) •
看看有没有用到自己不熟悉的 Gem 包 • 到 GitHub 熟悉一下未知 Gem 包的功能 • 收工,休息。 • 休息好了,想一下如果是你自己开发,你 准备如何入手,架子如何搭配
学习测试驱动,不会就跳过 • 'Keep it simple, stupid' (KISS principle) • RSpec
是首选,这个不是 Rails 框架类 库,别听 DHH 的。那是他的个人喜好。 • 不会就去看书,花钱上课,练习,练习, 练习。
Model 看复杂度 • 'Keep it simple, stupid' (KISS principle) •
用到的模式要知道 , 类如 decorator pattern ,不会不要装,学就好了 • db/schema.rb 是结构,重要么?我觉得不 重要,看看就知道了
运行命令 rails server, 看看效 果 • 'Keep it simple, stupid'
(KISS principle) • RVM 环境搞不定,阿,建议重头看第一课内容后半 部分。回去做功课,一下内容不用看了。 • Phusion Passenger 别整了,开发环境还是 rails server 来的快,不行来个 thin 也可以的。 • 用云,我管不了,但效果不错。考虑一下 RedHat 的 OpenShift 吧。
Assets 中代码的学习 • 'Keep it simple, stupid' (KISS principle) •
CoffeeScript 不会没关系, JavaScript 会 不会,不会就要学了 • SaSS 不会没关系, CSS 会不会,不会就 要学了 • 不想学那就靠边吧,让前端去学 Rails , 你学如何管他就可以了。嘿嘿
手刻一份完全一样的项目,完 成后和原项目参考对比 • 'Keep it simple, stupid' (KISS principle) •
从 XDite Blog 看出来的方法,其实这是个 公开的秘密,有付出就是收获 • 没有借口!
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0
Unported License.