News for hackers. Stuff that matters.

Ask HN: I want to learn to program (in Ruby). How can I get to "doing", easily?

I want to learn to program (in Ruby). But with near-unlimited information, resources, etc., I've found it pretty overwhelming/difficult to find a good place to start.

To get started, I'd rather do than read. I'd rather someone tell me, in as much detail as possible: "do this this and this to get your environment up and running." (I'm on OSX 10.5.)

Then, I'd prefer if someone would just give me a bunch of "cool code" (meaning code with practical applications -- i.e. something i can use/experience right away, perhaps a very simple blog) to write and run (with specific directions as to how to do both), so that I'm able to experience it first hand.

And then I'd like the concepts to be explained to me (e.g. what variables, strings, classes, instances, objects, etc., are), after I've experienced/interacted with/done it.

I guess I wish learning to code was like learning to throw a frisbee, or ride a bike.

Perhaps it is, but that hasn't been my experience...

I'd happily (and eagerly) pay someone to make the initial process and core concepts of learning to code (mainly for web-development) a much more user-friendly experience...

( 13 comments | 12 points | on HN )
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by anthonycerra on Sunday December 26, 2010 @10:11PM (#2041731)
For a while I used the freely available HTML book at Railstutorial.org, but I recently bought the screencast + pdf bundle. The quality of the material is top notch.

Paying for stuff will make you feel guilty if you don't use it. As a bonus, you get to support the people that make great stuff.

Some other sites to check out are: www.railscasts.com (Free) www.pragprog.com (not free) www.peepcode.com (the rails screencasts here were 'meh' and not free)

Re:Ask HN: I want to learn to program (in Ruby). How can I g... by joshbert on Sunday December 26, 2010 @08:51PM (#2041590)
You have to check this place out. It has been incredibly useful for a lot of people, myself included:

http://railsforzombies.org/

Good luck!

Re:Ask HN: I want to learn to program (in Ruby). How can I g... by runjake on Monday December 27, 2010 @05:21PM (#2043834)
I'm actually glad to see this question come up again & again, because the Ruby world is so fast-paced.

I found the following useful:

- tryruby.org (actually _why's precursor)

- Hartl's railstutorial.org

- Pragmatic Programmers Programming Ruby book

- Peepcode.com videos (great for getting started very quickly on CRUD apps

I saw that nobody's mentioned the previous HN Asks about learning Ruby, so I've compiled some of them here:

http://news.ycombinator.com/item?id=1623619

http://news.ycombinator.com/item?id=1984323

http://news.ycombinator.com/item?id=1544100

http://news.ycombinator.com/item?id=841951

You can find more at:

http://www.google.com/search?q=site%3Anews.ycombinator.com+l... http://news.ycombinator.com/item?id=1676271 http://news.ycombinator.com/item?id=1877668

Re:Ask HN: I want to learn to program (in Ruby). How can I g... by alanl on Sunday December 26, 2010 @07:50PM (#2041500)
For rails check out Michael Hartls tutorials by example railstutorial.org, it contains an ebook and videos. Only took me a couple of weeks to get through it and I can highly recommend it. I think it costs about $100.
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by spooneybarger on Sunday December 26, 2010 @04:56PM (#2041240)
How about hackety-hack.com?
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by maguay on Monday December 27, 2010 @11:42AM (#2042871)
Nice, I didn't realize it had a Windows version too. Thanks!
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by nerf on Sunday December 26, 2010 @05:24PM (#2041286)
Hm, that looks interesting. Thanks!
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by nerf on Sunday December 26, 2010 @09:42PM (#2041680)
I just came across http://tryruby.org and it seems pretty useful.
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by dougireton on Sunday December 26, 2010 @05:00PM (#2041242)
Try http://rubykoans.com/ or for Rails, try Railstutorial.org
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by sleight42 on Sunday December 26, 2010 @05:37PM (#2041304)
I've mentored several people who have wanted to learn Ruby. I universally start them with installing RVM (http://rvm.beginrescueend.com) and then the Ruby Koans.
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by niketdesai on Sunday December 26, 2010 @05:09PM (#2041262)
I just completed the ruby koans (as dougireton has suggested) and it was a great introductory course. I highly recommend that as a start. It's quite basic but you get a good grasp of key topics.
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by dnautics on Sunday December 26, 2010 @08:17PM (#2041542)
it would probably help a huge deal if you set yourself concrete goals. I was a perler and I learned ruby because I needed to process and chunk huge amounts of genomic data for my new job (yes I realize there are python tools to do this but being a perler ruby seemed like a better choice) so I wound up using it as an excuse to write all new scripts to do those jobs. In the process I learned ruby.
Re:Ask HN: I want to learn to program (in Ruby). How can I g... by davepm on Sunday December 26, 2010 @05:01PM (#2041247)
lynda.com is pretty good.

some ppl rate the "pickaxe" book (google it)

other than that, read code, try stuff, experiment.