SlideShare una empresa de Scribd logo
1 de 11
Ruby & Rails 
Frannie 2014/04/24
What is Ruby 
● A dynamic, reflective, object-oriented, 
general-purpose programming language. 
● It was designed and developed in the mid- 
1990s by Yukihiro "Matz" Matsumoto in 
Japan.
Why Ruby 
● 一個簡易且充滿生產力的開放原碼動態程式設計語言。 
高雅的語法,得以自然的閱讀與易於撰寫。 
o 萬物即物件 
5.times { print "We *love* Ruby -- it's outrageous!" } 
o 靈活性 
class Numeric 
def plus(x) 
self.+(x) 
endendy = 5.plus 6 
o https://www.ruby-lang.org/zh_tw/about/
Try Ruby 
● first 15 minutes 
o http://tryruby.org/levels/1/challenges/0 
● try others 
o https://www.ruby-lang.org/zh_tw/documentation/
What is Rails 
● Ruby on Rails(RoR), offen simply Rails, is 
an open source web application framework 
which runs via the Ruby programming 
language. 
● 非常有生產力、維護性高、容易佈署的Web 
開發框架。
What is MVC (1) 
● 非常多的Web框架都實踐一個叫做MVC的軟體架構設計 
模式,將軟體分成三個部分 
o Model: 物件包裝了資料與商業邏輯,例如操作資料庫 
o View: 表示使用者介面,顯示及編輯表單,可內嵌Ruby程式的HTML 
o Controller: 負責將資料送進送出Model,處理從外界(也就是瀏覽器)來 
的HTTP Request請求,與Model互動後輸出View(也就是HTML)
What is MVC (2)
Why Rails (1) 
● Philosophy 
o Don't Repeat Yourself(DRY) 
 By not writing the same information over and over again, our code 
is more maintainable, more extensible, and less buggy. 
o Convention Over Configuration(COC) 
 慣例勝於設定, Rails會預設各種好的設定跟慣例,而不是要求你設 
定每一個細節到設定檔中。
Why Rails (2) 
● 目前網站開發框架中做前端(提供動態HTML給瀏覽器)應 
用伺服器最為成功和技術先進的 
● 目前動態語言中,生態圈最為豐富的網站開發框架。(也 
就是資料很好找啦!!!) 
● 生產力暴增:寫新的應用程式、增加新功能變成容易地 
多。讓你可以用更少程式碼做更多的事情,而且程式也 
更容易維護。
Try Rails 
● http://railsgirls.tw/app/ 
● http://guides.rubyonrails.org/getting_started. 
html 
● http://guides.ruby.tw/rails3/getting_started.ht 
ml
Rails 案例 
● http://ihower.tw/rails3/faq.html 
o see『問:Ruby on Rails 的發展如何? 商業應用多 
嗎?』 
● http://www.ithome.com.tw/node/40695

Más contenido relacionado

Destacado

Paper id 152013128
Paper id 152013128Paper id 152013128
Paper id 152013128IJRAT
 
Richard Aquilone's Top Albums of the 90s
Richard Aquilone's Top Albums of the 90sRichard Aquilone's Top Albums of the 90s
Richard Aquilone's Top Albums of the 90sRichard Aquilone
 
2D Top-down shooter workflow
2D Top-down shooter workflow2D Top-down shooter workflow
2D Top-down shooter workflowraimondklavins
 
01 4547315236749 00001
01 4547315236749 0000101 4547315236749 00001
01 4547315236749 00001Pilwoo Nam
 
Corporate account manager kpi
Corporate account manager kpiCorporate account manager kpi
Corporate account manager kpigkatgutos
 
Managing GeoData with PostGIS @ KhmelnytskyiPy #1
Managing GeoData with PostGIS @ KhmelnytskyiPy #1Managing GeoData with PostGIS @ KhmelnytskyiPy #1
Managing GeoData with PostGIS @ KhmelnytskyiPy #1Volodymyr Gamula
 
Facebook Hits 8 Billion Daily Native Video Views | The Opportunity For Busine...
Facebook Hits 8 Billion Daily Native Video Views | The Opportunity For Busine...Facebook Hits 8 Billion Daily Native Video Views | The Opportunity For Busine...
Facebook Hits 8 Billion Daily Native Video Views | The Opportunity For Busine...Sajid Ali
 
Account associate kpi
Account associate kpiAccount associate kpi
Account associate kpigkatgutos
 
Business account manager kpi
Business account manager kpiBusiness account manager kpi
Business account manager kpigkatgutos
 

Destacado (11)

Paper id 152013128
Paper id 152013128Paper id 152013128
Paper id 152013128
 
Richard Aquilone's Top Albums of the 90s
Richard Aquilone's Top Albums of the 90sRichard Aquilone's Top Albums of the 90s
Richard Aquilone's Top Albums of the 90s
 
2D Top-down shooter workflow
2D Top-down shooter workflow2D Top-down shooter workflow
2D Top-down shooter workflow
 
01 4547315236749 00001
01 4547315236749 0000101 4547315236749 00001
01 4547315236749 00001
 
Corporate account manager kpi
Corporate account manager kpiCorporate account manager kpi
Corporate account manager kpi
 
Managing GeoData with PostGIS @ KhmelnytskyiPy #1
Managing GeoData with PostGIS @ KhmelnytskyiPy #1Managing GeoData with PostGIS @ KhmelnytskyiPy #1
Managing GeoData with PostGIS @ KhmelnytskyiPy #1
 
Facebook Hits 8 Billion Daily Native Video Views | The Opportunity For Busine...
Facebook Hits 8 Billion Daily Native Video Views | The Opportunity For Busine...Facebook Hits 8 Billion Daily Native Video Views | The Opportunity For Busine...
Facebook Hits 8 Billion Daily Native Video Views | The Opportunity For Busine...
 
AAM-Saidur-Rahman
AAM-Saidur-RahmanAAM-Saidur-Rahman
AAM-Saidur-Rahman
 
Account associate kpi
Account associate kpiAccount associate kpi
Account associate kpi
 
Business account manager kpi
Business account manager kpiBusiness account manager kpi
Business account manager kpi
 
CVformat_syed_final
CVformat_syed_finalCVformat_syed_final
CVformat_syed_final
 

Similar a What are Ruby & Rails

第1章 入门
第1章 入门第1章 入门
第1章 入门Runa Jiang
 
從 Java programmer 的觀點看 ruby
從 Java programmer 的觀點看 ruby從 Java programmer 的觀點看 ruby
從 Java programmer 的觀點看 ruby建興 王
 
Rubyonrails(Chinese)
Rubyonrails(Chinese)Rubyonrails(Chinese)
Rubyonrails(Chinese)heisda
 
Go语言学习指南
Go语言学习指南Go语言学习指南
Go语言学习指南清平 张
 
Architect 200912-by-info q
Architect 200912-by-info qArchitect 200912-by-info q
Architect 200912-by-info qgavin shaw
 

Similar a What are Ruby & Rails (7)

Ruby基础培训
Ruby基础培训Ruby基础培训
Ruby基础培训
 
第七組
第七組第七組
第七組
 
第1章 入门
第1章 入门第1章 入门
第1章 入门
 
從 Java programmer 的觀點看 ruby
從 Java programmer 的觀點看 ruby從 Java programmer 的觀點看 ruby
從 Java programmer 的觀點看 ruby
 
Rubyonrails(Chinese)
Rubyonrails(Chinese)Rubyonrails(Chinese)
Rubyonrails(Chinese)
 
Go语言学习指南
Go语言学习指南Go语言学习指南
Go语言学习指南
 
Architect 200912-by-info q
Architect 200912-by-info qArchitect 200912-by-info q
Architect 200912-by-info q
 

What are Ruby & Rails

  • 1. Ruby & Rails Frannie 2014/04/24
  • 2. What is Ruby ● A dynamic, reflective, object-oriented, general-purpose programming language. ● It was designed and developed in the mid- 1990s by Yukihiro "Matz" Matsumoto in Japan.
  • 3. Why Ruby ● 一個簡易且充滿生產力的開放原碼動態程式設計語言。 高雅的語法,得以自然的閱讀與易於撰寫。 o 萬物即物件 5.times { print "We *love* Ruby -- it's outrageous!" } o 靈活性 class Numeric def plus(x) self.+(x) endendy = 5.plus 6 o https://www.ruby-lang.org/zh_tw/about/
  • 4. Try Ruby ● first 15 minutes o http://tryruby.org/levels/1/challenges/0 ● try others o https://www.ruby-lang.org/zh_tw/documentation/
  • 5. What is Rails ● Ruby on Rails(RoR), offen simply Rails, is an open source web application framework which runs via the Ruby programming language. ● 非常有生產力、維護性高、容易佈署的Web 開發框架。
  • 6. What is MVC (1) ● 非常多的Web框架都實踐一個叫做MVC的軟體架構設計 模式,將軟體分成三個部分 o Model: 物件包裝了資料與商業邏輯,例如操作資料庫 o View: 表示使用者介面,顯示及編輯表單,可內嵌Ruby程式的HTML o Controller: 負責將資料送進送出Model,處理從外界(也就是瀏覽器)來 的HTTP Request請求,與Model互動後輸出View(也就是HTML)
  • 8. Why Rails (1) ● Philosophy o Don't Repeat Yourself(DRY)  By not writing the same information over and over again, our code is more maintainable, more extensible, and less buggy. o Convention Over Configuration(COC)  慣例勝於設定, Rails會預設各種好的設定跟慣例,而不是要求你設 定每一個細節到設定檔中。
  • 9. Why Rails (2) ● 目前網站開發框架中做前端(提供動態HTML給瀏覽器)應 用伺服器最為成功和技術先進的 ● 目前動態語言中,生態圈最為豐富的網站開發框架。(也 就是資料很好找啦!!!) ● 生產力暴增:寫新的應用程式、增加新功能變成容易地 多。讓你可以用更少程式碼做更多的事情,而且程式也 更容易維護。
  • 10. Try Rails ● http://railsgirls.tw/app/ ● http://guides.rubyonrails.org/getting_started. html ● http://guides.ruby.tw/rails3/getting_started.ht ml
  • 11. Rails 案例 ● http://ihower.tw/rails3/faq.html o see『問:Ruby on Rails 的發展如何? 商業應用多 嗎?』 ● http://www.ithome.com.tw/node/40695

Notas del editor

  1. dynamic: 動態轉型, 不需指定型態, ex: javascript, php reflective: 在runtime可動態的決定要使用哪個結構或行為, ex: javascript eval(...), php call_user_func(...), java Class.forName(...).newInstance()...
  2. ex: ASP.NET MVC、CakePHP 都是模仿 Smarty only View