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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 分享開發者在創業前應該明確的10件事創業
- 10個應該瞭解的Ruby技術
- Java開發者應該列入年度計劃的5件事Java
- 獨立開發者入行之前應該知道的8件事
- 關於 NoSQL 資料庫你應該瞭解的 10 件事SQL資料庫
- 開發者應該瞭解的API技術清單!API
- 關於大資料你應該瞭解的五件事兒大資料
- 每個MySQL開發者都應該瞭解的10個技巧MySql
- docker – 你應該知道的10件事Docker
- 關於工業物聯網,你應該瞭解的3件事
- 當開發者產生一個偉大的想法之後應該做的10件事
- 每一個JavaScript開發者應該瞭解的浮點知識JavaScript
- 每個Android開發者都應該瞭解的資源列表Android
- 每個程式設計師都應該瞭解的一件事程式設計師
- Ruby社群應該去Rails化了AI
- 你必須詢問聰明的Web開發者的10件事情Web
- 寫程式碼之前應該做的幾件事
- 智慧行業聰明者,程式設計師應該瞭解的CRM行業程式設計師
- 前端應該瞭解的PWA前端
- 關於製造業中物聯網的未來應該瞭解的7件事
- IT安全專業人員應該知道的12件事
- 程式設計師最應該知道的20件事程式設計師
- 學習和使用PHP應該注意的10件事PHP
- 關於iPhone SE你應該知道的20件事iPhone
- 【譯】你應該瞭解的 CORSCORS
- 找工作時,我們應該思考的幾件事情。
- 老程式設計師應該記住的 5 件事程式設計師
- 關於MySQL應該學習的6件事MySql
- 軟體工程師應該知道的9件事軟體工程工程師
- 大規模執行MongoDB應該知道的10件事MongoDB
- 在IT界取得成功應該知道的10件事
- 程式設計師應該知道的97件事程式設計師
- Ruby開發人員應該熟悉的10個工具
- PHP開發者應瞭解的24個庫PHP
- iOS 7應用開發者需要注意的五件事iOS
- 新手程式設計師應該知道的7件事程式設計師
- 軟體架構師應該知道的97件事架構
- 好的web開發者應該10個技巧Web