TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

New to Ruby? Tips for the new Rubyist.

155 点作者 kaiwren将近 13 年前

12 条评论

tseabrooks将近 13 年前
I'm in the middle of picking up Ruby primarily because there was a GitHub project I wanted to fork and modify for my purposes that happened to be written in Ruby.The biggest problem I found is that the Ruby (or maybe the Rails?) community by and large provides shit instructions on how to get something running. I checked out a handful of projects and they all said things like, "Just deploy the normal what you deploy a rails app" and the like. Likewise, googling had almost universally bad / outdated information. Eventually I ended up with Passenger who had awesome instructions.<p>I finally pushed through but I suspect just getting things running is a big enough PITA to deter new people from participating in Ruby land. Even if Hannson says it's a myth.
评论 #4068972 未加载
评论 #4068874 未加载
评论 #4068843 未加载
评论 #4069014 未加载
评论 #4068868 未加载
why-el将近 13 年前
I would like to get some advice from experienced Ruby hackers. Currently I am picking up Ruby through rails, which I am assuming is fairly common. I want to know the downsides to this and what people did to supplement their ruby knowledge beyond Rails. I eventually would like to write my own gems, contribute to open source, and so forth. I am absolutely not satisfied with just consuming Rails.
评论 #4068792 未加载
评论 #4068645 未加载
评论 #4068671 未加载
评论 #4068910 未加载
评论 #4068855 未加载
评论 #4068741 未加载
评论 #4093178 未加载
评论 #4070388 未加载
评论 #4068826 未加载
评论 #4069729 未加载
msluyter将近 13 年前
I really enjoyed working through the Ruby Koans (<a href="http://rubykoans.com/" rel="nofollow">http://rubykoans.com/</a>). They're especially nice because you can work on them offline, so I finished them while on a flight to the U.K. I'm considering writing up some "advanced ruby koans," with more in depth examples delving deeper into the standard library and whatnot.
danso将近 13 年前
I think it's wrong to judge Zed's Learn Ruby the Hard Way too harshly as the OP does...yes, it's a straight port from the Python version, but both versions focus on teaching programming to non-programmers, which is a concept that can be largely language and idiom agnostic...at least between Python and Ruby.
vidarh将近 13 年前
His summary of the object hierarchy of Ruby is probably more confusing than elucidating to most Ruby beginners, since he doesn't make it very clear that he's dealing with the distinction between instances and classes (which are themselves instances of Class).<p>From the description it seems like he doesn't quite get the distinction himself, and one of the later examples is broken:<p>"Array.new.methods - Object.methods" should read "Array.new.methods - Object.new.methods". Otherwise he's in fact subtracting the methods available on an error instance from the methods available on an instance of Class, not the methods available on a generic object..
评论 #4070966 未加载
rjsamson将近 13 年前
Its great to see metaprogramming listed here - it is a term that tends to frighten beginners a lot more than it should. Understanding some of the basic metaprogramming concepts and features early will go a long way to helping you become a better Rubyist.
xyzzyb将近 13 年前
Shameless plug: I collected a bunch of resources for learning Ruby, Rails, and general programming on Rake Routes a couple months ago: <a href="http://rakeroutes.com/blog/learning-ruby-rails-and-programming/" rel="nofollow">http://rakeroutes.com/blog/learning-ruby-rails-and-programmi...</a><p>On the article, I strongly disagree that vim requires plugins to be viable for Ruby development. The Janus plugin should especially be carefully considered as it wraps up a lot of magic that could prevent the new vim user from effectively learning vim itself.
cicloid将近 13 年前
Also material like Ruby Rogues podcast ( <a href="http://rubyrogues.com/" rel="nofollow">http://rubyrogues.com/</a> ) contain great episodes to give a newcomer a tour of the ecosystem.
christiangenco将近 13 年前
&#62; (infinite loops are almost always written using the loop do..end construct though. but how often do you write infinite loops anyway?)<p>`while true` usually does it for me.
snorkel将近 13 年前
Empty string is true. Who here hasn't banged their head over that one?
评论 #4069848 未加载
评论 #4069906 未加载
sparknlaunch将近 13 年前
Uh, another good post on sharing the joy/pain of learning Ruby. Thanks for sharing.<p>I have spent the past three weeks getting my head into Ruby (on the hopeful way to understanding Rails). With so many different languages and stacks, it makes the early stages extremely daunting for a beginner.<p>I have found comfort in the following resources:<p>1) The only website I found that actually visualized how everything sits together: <a href="http://techiferous.com/2010/07/roadmap-for-learning-rails/" rel="nofollow">http://techiferous.com/2010/07/roadmap-for-learning-rails/</a><p>2) I persevered with a Ruby programming book: Beginning Ruby: From Novice to Professional (by Peter Cooper)<p>3) Spent a few days on a zero install Ruby tutorial: <a href="http://tryruby.org" rel="nofollow">http://tryruby.org</a><p>I plan to write some blog posts on the journey however may wait until I get passed the basics before sharing too much.
评论 #4070898 未加载
tferris将近 13 年前
OT and hijacking this thread:<p>1. Who is actually new to Ruby?<p>(After Ruby or rather the popular RoR is there almost for a decade everyone should have made some experiences with Ruby, so I am wondering if there are many new Rubiest)<p>2. What new language/stack did you start to learn recently?<p>(for me: Node.js)
评论 #4068940 未加载
评论 #4068984 未加载
评论 #4069092 未加载
评论 #4069297 未加载