Ruby開發者應該明瞭的15件事
[i=s] 本帖最後由 jieforest 於 2012-6-9 02:33 編輯
The following is a post I had recently sent the Bangalore Ruby User Group. It has been slightly modified to address a larger audience.
There were many Ruby beginners in last week's meetup, and the common question we heard was 'after the very basics, what next?'
The best way to learn Ruby best practices is to pair with an experienced dev; the way I learned was by inheriting a reasonably small, but well-written codebase from an amazing colleague. In the absence of either, here is a checklist of 15 things (since 'N things that you need to know about X' is the in-thing these days!) that I'd recommend a Ruby beginner to consider:
1. The very basics
Our very own rubymonk.com has a Ruby primer which was written for exactly this purpose; we open our inbox everyday to gushing feedback from people who've found it to be a great way to learn Ruby. Try it and let us know how it goes!
tryruby.org also has a basic introduction to Ruby, and has been around longer. Edgecase's Ruby Koan is an interesting concept, and covers the language both in breadth and depth, and is a very strong recommendation. It should take you anywhere between 5-10 hours to finish all of the Koans. Do try it!
I have heard good things about Learn Ruby the Hardway, but haven't tried it out myself. Okay, I just skimmed through portions of it and I'm not really happy - LRTH seems to be mostly a line-to-line translation of Python code to Ruby. It uses 'while' loop in places where equivalent Ruby idioms (Enumerables) would have made more sense. Also there is no mention of blocks, metaprogramming and duck-typing, which pretty much is a deal-breaker for me. But to be fair, the target audience for LRTH seem to be non-programmers for whom the concept of loops and objects would be new, and for them it does the job very well.
Wait, have you read Why's Poignant Guide to Ruby? If this is the first time you're hearing about why the lucky stiff, read this amazing piece on _why by the Smashing Magazine. And definitely read The Poignant Guide: http://mislav.uniqpath.com/poignant-guide/. It is full of cats, foxes, chunky bacon, cartoons that doesn't always make much sense, space travel and what not. This was one of my first introductions to the Ruby community, and the guide lent the language and the community a fun, quirky and happy aura. You may or may not take away much Ruby knowledge from the guide - I couldn't when I read it for the first time. However you'll definitely understand some of the quirkiness and philosophies that influence the Ruby community. I'm a huge fan of _why, and here is my favourite quote:
The following is a post I had recently sent the Bangalore Ruby User Group. It has been slightly modified to address a larger audience.
There were many Ruby beginners in last week's meetup, and the common question we heard was 'after the very basics, what next?'
The best way to learn Ruby best practices is to pair with an experienced dev; the way I learned was by inheriting a reasonably small, but well-written codebase from an amazing colleague. In the absence of either, here is a checklist of 15 things (since 'N things that you need to know about X' is the in-thing these days!) that I'd recommend a Ruby beginner to consider:
1. The very basics
Our very own rubymonk.com has a Ruby primer which was written for exactly this purpose; we open our inbox everyday to gushing feedback from people who've found it to be a great way to learn Ruby. Try it and let us know how it goes!
tryruby.org also has a basic introduction to Ruby, and has been around longer. Edgecase's Ruby Koan is an interesting concept, and covers the language both in breadth and depth, and is a very strong recommendation. It should take you anywhere between 5-10 hours to finish all of the Koans. Do try it!
I have heard good things about Learn Ruby the Hardway, but haven't tried it out myself. Okay, I just skimmed through portions of it and I'm not really happy - LRTH seems to be mostly a line-to-line translation of Python code to Ruby. It uses 'while' loop in places where equivalent Ruby idioms (Enumerables) would have made more sense. Also there is no mention of blocks, metaprogramming and duck-typing, which pretty much is a deal-breaker for me. But to be fair, the target audience for LRTH seem to be non-programmers for whom the concept of loops and objects would be new, and for them it does the job very well.
Wait, have you read Why's Poignant Guide to Ruby? If this is the first time you're hearing about why the lucky stiff, read this amazing piece on _why by the Smashing Magazine. And definitely read The Poignant Guide: http://mislav.uniqpath.com/poignant-guide/. It is full of cats, foxes, chunky bacon, cartoons that doesn't always make much sense, space travel and what not. This was one of my first introductions to the Ruby community, and the guide lent the language and the community a fun, quirky and happy aura. You may or may not take away much Ruby knowledge from the guide - I couldn't when I read it for the first time. However you'll definitely understand some of the quirkiness and philosophies that influence the Ruby community. I'm a huge fan of _why, and here is my favourite quote:
CODE:
when you don't create things, you become defined by your tastes rather than ability. your tastes only narrow & exclude people. so create.來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-732334/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 開發者應該瞭解的API技術清單!API
- 智慧行業聰明者,程式設計師應該瞭解的CRM行業程式設計師
- 關於大資料你應該瞭解的五件事兒大資料
- 中級Android開發應該瞭解的Binder原理Android
- 關於工業物聯網,你應該瞭解的3件事
- 後端開發都應該瞭解的登入漏洞後端
- 專案經理應該知道的97件事 --譯者序
- 寫程式碼之前應該做的幾件事
- Ubuntu使用者都應該瞭解的快捷鍵Ubuntu
- 每個JavaScript開發人員都應該瞭解UnicodeJavaScriptUnicode
- 每個 JavaScript 開發者都該瞭解的 ES2018 新特性JavaScript
- 關於製造業中物聯網的未來應該瞭解的7件事
- Web前端程式設計師應該遵循的15個開發原則!Web前端程式設計師
- 用友雲開發者中心,你應該知道的那些事
- 前端開發者應該明白的瀏覽器工作原理前端瀏覽器
- 每位開發者都應該知道SOLID原則Solid
- 為什麼開發者應該摒棄敏捷?敏捷
- 後端開發都應該瞭解的資訊洩露風險後端
- 前端應該瞭解的PWA前端
- 找工作時,我們應該思考的幾件事情。
- 每個開發者都應該使用的VSCode外掛 - tvkoushikVSCode
- 每個開發者都應該知道的33個JavaScript概念JavaScript
- [Flutter翻譯]開始使用Flutter Web之前應該知道的7件事FlutterWeb
- 開發者測試:你必須知道 7 件事
- 【譯】你應該瞭解的 CORSCORS
- [譯文] 初學者應該瞭解的資料結構: Tree資料結構
- [譯文] 初學者應該瞭解的資料結構: Graph資料結構
- IT安全專業人員應該知道的12件事
- 一個開發者的使命感究竟應該是什麼?
- 每個 Java 開發者都應該知道的 5 個註解Java
- 0基礎學程式設計,瞭解這15件事能事半功倍!程式設計
- 【譯】2019年JavaScript開發者應該都在用的9個棒的技巧JavaScript
- 8 個你應該瞭解的環保開源專案
- Android開發應該掌握的Proguard技巧Android
- Android 開發應該掌握的 Proguard 技巧Android
- 簡單明瞭的體會構建者模式模式
- 重要!每個開發者都應該掌握的9個核心演算法演算法
- 騰訊投資明晝科技持股15%,後者經營範圍含遊戲開發遊戲開發
- 你應該瞭解的 Java SPI 機制Java