Suche senden
Hochladen
Rails dev experices
•
0 gefällt mir
•
310 views
D
David_fu
Folgen
rails dev materials
Weniger lesen
Mehr lesen
Software
Diashow-Anzeige
Melden
Teilen
Diashow-Anzeige
Melden
Teilen
1 von 32
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Introduction to javascript technologies
Introduction to javascript technologies
Abdalla Elsayed
Jesus loves me (this i know)
Jesus loves me (this i know)
Raya Stuiver
Why pray?
Why pray?
Raya Stuiver
Your Reality is Not My Reality: Assessing the Merits of Critical Pedagogy in ...
Your Reality is Not My Reality: Assessing the Merits of Critical Pedagogy in ...
Linda Chambers
Samar Al Amar_Resume
Samar Al Amar_Resume
Samar Al-Amad
The Transformation of Giorgio Agamben's Homo Sacer
The Transformation of Giorgio Agamben's Homo Sacer
Linda Chambers
Your Reality is Not My Reality
Your Reality is Not My Reality
Linda Chambers
Yes, Jesus Loves Me
Yes, Jesus Loves Me
Raya Stuiver
Empfohlen
Introduction to javascript technologies
Introduction to javascript technologies
Abdalla Elsayed
Jesus loves me (this i know)
Jesus loves me (this i know)
Raya Stuiver
Why pray?
Why pray?
Raya Stuiver
Your Reality is Not My Reality: Assessing the Merits of Critical Pedagogy in ...
Your Reality is Not My Reality: Assessing the Merits of Critical Pedagogy in ...
Linda Chambers
Samar Al Amar_Resume
Samar Al Amar_Resume
Samar Al-Amad
The Transformation of Giorgio Agamben's Homo Sacer
The Transformation of Giorgio Agamben's Homo Sacer
Linda Chambers
Your Reality is Not My Reality
Your Reality is Not My Reality
Linda Chambers
Yes, Jesus Loves Me
Yes, Jesus Loves Me
Raya Stuiver
Ruby on Rails: a brief introduction
Ruby on Rails: a brief introduction
Luigi De Russis
Ruby in prijatelji
Ruby in prijatelji
Oto Brglez
Ruby+rails
Ruby+rails
Josh Dvir
Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1
Mark Menard
Iron* - An Introduction to Getting Dynamic on .NET
Iron* - An Introduction to Getting Dynamic on .NET
Kristian Kristensen
IDLs
IDLs
Ruslan Shevchenko
Ruby on Rails : First Mile
Ruby on Rails : First Mile
Gourab Mitra
遇見 Ruby on Rails
遇見 Ruby on Rails
Wen-Tien Chang
Golang workshop - Mindbowser
Golang workshop - Mindbowser
Mindbowser Inc
Kubernetes and AWS Lambda can play nicely together
Kubernetes and AWS Lambda can play nicely together
Edward Wilde
Ruby is dying. What languages are cool now?
Ruby is dying. What languages are cool now?
Michał Konarski
Ruby On Rails Overview
Ruby On Rails Overview
jonkinney
ruby-cocoa
ruby-cocoa
tutorialsruby
ruby-cocoa
ruby-cocoa
tutorialsruby
Bhavesh ro r
Bhavesh ro r
bhavesh-gloscon
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)
jaxLondonConference
Intro to Ruby on Rails
Intro to Ruby on Rails
rschmukler
The story of language development
The story of language development
Hiroshi SHIBATA
Ruby on Rails: Outreach for Women, SF
Ruby on Rails: Outreach for Women, SF
Karen Zeller
Using deploy in drupal 8
Using deploy in drupal 8
timmillwood
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
AmarnathKambale
Weitere ähnliche Inhalte
Ähnlich wie Rails dev experices
Ruby on Rails: a brief introduction
Ruby on Rails: a brief introduction
Luigi De Russis
Ruby in prijatelji
Ruby in prijatelji
Oto Brglez
Ruby+rails
Ruby+rails
Josh Dvir
Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1
Mark Menard
Iron* - An Introduction to Getting Dynamic on .NET
Iron* - An Introduction to Getting Dynamic on .NET
Kristian Kristensen
IDLs
IDLs
Ruslan Shevchenko
Ruby on Rails : First Mile
Ruby on Rails : First Mile
Gourab Mitra
遇見 Ruby on Rails
遇見 Ruby on Rails
Wen-Tien Chang
Golang workshop - Mindbowser
Golang workshop - Mindbowser
Mindbowser Inc
Kubernetes and AWS Lambda can play nicely together
Kubernetes and AWS Lambda can play nicely together
Edward Wilde
Ruby is dying. What languages are cool now?
Ruby is dying. What languages are cool now?
Michał Konarski
Ruby On Rails Overview
Ruby On Rails Overview
jonkinney
ruby-cocoa
ruby-cocoa
tutorialsruby
ruby-cocoa
ruby-cocoa
tutorialsruby
Bhavesh ro r
Bhavesh ro r
bhavesh-gloscon
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)
jaxLondonConference
Intro to Ruby on Rails
Intro to Ruby on Rails
rschmukler
The story of language development
The story of language development
Hiroshi SHIBATA
Ruby on Rails: Outreach for Women, SF
Ruby on Rails: Outreach for Women, SF
Karen Zeller
Using deploy in drupal 8
Using deploy in drupal 8
timmillwood
Ähnlich wie Rails dev experices
(20)
Ruby on Rails: a brief introduction
Ruby on Rails: a brief introduction
Ruby in prijatelji
Ruby in prijatelji
Ruby+rails
Ruby+rails
Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1
Iron* - An Introduction to Getting Dynamic on .NET
Iron* - An Introduction to Getting Dynamic on .NET
IDLs
IDLs
Ruby on Rails : First Mile
Ruby on Rails : First Mile
遇見 Ruby on Rails
遇見 Ruby on Rails
Golang workshop - Mindbowser
Golang workshop - Mindbowser
Kubernetes and AWS Lambda can play nicely together
Kubernetes and AWS Lambda can play nicely together
Ruby is dying. What languages are cool now?
Ruby is dying. What languages are cool now?
Ruby On Rails Overview
Ruby On Rails Overview
ruby-cocoa
ruby-cocoa
ruby-cocoa
ruby-cocoa
Bhavesh ro r
Bhavesh ro r
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)
Real-world polyglot programming on the JVM - Ben Summers (ONEIS)
Intro to Ruby on Rails
Intro to Ruby on Rails
The story of language development
The story of language development
Ruby on Rails: Outreach for Women, SF
Ruby on Rails: Outreach for Women, SF
Using deploy in drupal 8
Using deploy in drupal 8
Kürzlich hochgeladen
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
AmarnathKambale
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
WSO2
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
WSO2
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
Presentation.STUDIO
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Philip Schwarz
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
Juha-Pekka Tolvanen
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
masabamasaba
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
tonesoftg
tonesoftg
lanshi9
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
alwaysnagaraju26
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2
Kürzlich hochgeladen
(20)
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
tonesoftg
tonesoftg
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
Rails dev experices
1.
Rails 开发的⼀一些⼲干货 David 2015.8.16
2.
• 2013.4 -
2013.10 主⼒力开发nanfang.com • 2013.10 - 2014.6 主⼒力开发ezitask项⽬目 ⼯工作经历 • github https://github.com/lexuszhi1990 • blog http://lingzhi.me/
3.
Ruby 语⾔言 ❖ DRY
/ COC ❖ 简洁 稳定 拓展 ❖ 语⾔言⼗〸十分接近⼈人类语⾔言 “?, !” 的应⽤用(“ Model.any?” “String.merge!”)
4.
!, ? ,
< ❖ merge! ❖ any? ❖ class A < B
5.
blocks, Procs, lambdas
和 Methods ❖ array.collect! { |n| n ** 2 } ❖ square = proc { |n| n ** 2 } ❖ lambda { |n| n ** 2 } ❖ def square(n); n ** 2 ; end method(:square).call(9)
6.
Ruby 变量命名 ❖ 起的名字是有意义的,可以表达⼀一个概念; ❖
要考虑名字的长度,名称中只有必要的信息; ❖ 符合“编码规范”,帮助理解; ❖ ⼀一个概念不要多种名字混⽤用; ❖ 变量是及名词短语,⽅方法名是动词或者 动词_宾语
7.
Ruby 编写规范 ❖ guide
style : https://github.com/bbatsov/ ruby-style-guide ❖ http://rocodev.gitbooks.io/rails-102/ content/chapter4-ruby/README.html
8.
Rack ❖ a modular
Ruby webserver interface ❖ https://github.com/ rack/rack ❖ http://confreaks.tv/ videos/railsconf2013- from-rails-to-the-web- server-to-the-browser
9.
Rails MVC
10.
Rails controller ❖ request
处理 ❖ Sessions处理 ❖ Cookies处理 ❖ Flash消息处理 ❖ Render結果 controller 需要做的事情 [ihower actioncontroller](https://ihower.tw/rails4/actioncontroller.html) [action controller overview](http://guides.rubyonrails.org/action_controller_overview.html)
11.
rails controller ❖ action_name ❖
cookies ❖ headers ❖ params ❖ request ❖ xml_http_request? 或 xhr? ❖ host_with_port ❖ remote_ip ❖ headers ❖ response ❖ session Request中包含有的信息 http://api.rubyonrails.org/classes/ActionDispatch/Request.html
12.
Skinny Controller ❖ controller
的代码最多10⾏行 ❖ 使⽤用 Concern。 其实也就是我们通常说的 Shared Mixin Module。就 是把 Controllers/Models ⾥里⾯面⼀一些通⽤用的应⽤用逻辑抽象到⼀一个 Module ⾥里⾯面做封装,我们约定叫它 Concern ❖ Delegation Pattern [ruby forwardable](http://ruby-doc.org/stdlib-2.0.0/libdoc/ forwardable/rdoc/Forwardable.html) [dive into forwardable](http://www.saturnflyer.com/blog/jim/ 2015/01/20/ruby-forwardable-deep-dive/) ❖ Service and Presenter http://yedingding.com/2013/03/04/steps-to-refactor- controller-and-models-in-rails-projects.html
13.
rails model ❖ the
layer of the system responsible for representing business data and logic ❖ Object Relational Mapping ❖ http://guides.rubyonrails.org/ active_record_basics.html
14.
Model ❖ ActiveSupport::Concern ❖ ActiveSupport ❖
Class && Module(include && extend) ❖ Eigenclass and methods
15.
PG - Extensions ❖
JSON ❖ Range Types ❖ Composite Types ❖ UUID ❖ Full Text Search ❖ fuzzystrmatch || Trigram ❖ cube
16.
asset precompile ❖ http://gogojimmy.net/2012/07/03/understand-assets- pipline/
17.
asset precompile ❖ https://ruby-china.org/topics/19437
18.
debugger ❖ pry ❖ log
file ❖ https://speakerdeck.com/lidaobing/chu-liao-wen-ti- bu-yao-kao-cai ❖ http://railscasts-china.com/episodes/do-not-guess- the-problem-lidaobing
19.
debugger
20.
debugger
21.
debugger
22.
efficiency ❖ alias ❖ 熟练使⽤用
gems ❖ git ❖ ⼀一款顺⼿手的编辑器
23.
Alias ❖ 封装最常⽤用的命令 ❖ 推荐:
https://github.com/rainchen/git-cmd-helpers
24.
25.
将常⽤用的⼏几个命令捆绑成⼀一个命令 ❖ alias 'one-task-ended'='git-master-update
&& git-delete- merged-branches && cap-staging-deploy‘
26.
为每个项⽬目订制命令
27.
熟练使⽤用的GEM ❖ http://codebeerstartups.com/2013/04/must-have- gems-for-development-machine-in-ruby-on-rails/
28.
基本的设计概念 ❖ http:// book.douban.com/ subject/3323633/ ❖ 对齐 ❖
颜⾊色 ❖ 字体 ❖ …
29.
基本的设计概念
30.
javacript ❖ Secrets of
the JavaScript Ninja ❖ Functional JavaScript
31.
API + JS框架
32.
Q&A
Jetzt herunterladen