DEV Community

Cover image for How did YOU learn Ruby?
Ben Lovy
Ben Lovy

Posted on

How did YOU learn Ruby?

So, there's a chance I might need to get myself up to speed with Ruby (for real, and for quick), and even a smidgen of Rails and/or Sinatra.

I read why's poignant guide a long time ago. I also worked through some of Michael Hartl's Rails Tutorial, but this was back in Rails 4 days.

I've been working with JavaScript, TypeScript, C++, and Rust enough to feel I sort of understand what OOP means, but I know that Ruby takes a page from the Smalltalk book of object orientation . It ain't kid's play anymore, we're really oriented around objects here.

I have heard Practical Object-Oriented Design in Ruby by Sandi Metz is a good resource, and I am planning to pick up a copy. I also plan to translate some existing web backend work in a variety of tools to Rails 6. How else would you, Ruby expert, go about getting yourself back up to speed?

(p.s. job. more after the break.)

Oldest comments (26)

Collapse
 
deciduously profile image
Ben Lovy

Hah - good answer:

bluth

If only!

Collapse
 
codemouse92 profile image
Jason C. McDonald

Career Development Through Strategic Ignorance™

Well...that's one way of doing it!

Collapse
 
ben profile image
Ben Halpern

Ruby is a scripting language at its core. One command after another. Almost brutally simplistic.

I’d recommend opening up IRB and typing some commands. It’s actually pretty close to coding in the environment.

Ruby is sort of object oriented, sort of functional, and has a few ways to do the same thing most of the time. It’s a bit of a free-for-all.

Collapse
 
deciduously profile image
Ben Lovy

Sounds like a blast, honestly.

Collapse
 
ben profile image
Ben Halpern • Edited

It's so much about personal taste, but I really love how much care has gone into the language. It's a language that is more art than science and there are plenty of folks that find it distasteful.

But if it "fits your brain" it really is a blast.

Thread Thread
 
deciduously profile image
Ben Lovy

I see some Ruby in DEV - "Matz is nice, so we are nice"

Thread Thread
 
gypsydave5 profile image
David Wickes

MINASWAN 👍

Collapse
 
joshuawoodsdev profile image
JoshuaWoods

Sololearn and Treehouse now im working througfh some Middleman and Sinatra

Collapse
 
downey profile image
Tim Downey

Michael Hartl's Rails tutorial is how I learned it in 2013.

I think you'll be fine.

Collapse
 
delta456 profile image
Swastik Baranwal

If you want to understand OOP then C++ is for you and Ruby is easy. Get some books and references and try out some code in REPL.

Collapse
 
deciduously profile image
Ben Lovy • Edited

It's more Ruby specifically than OOP I want to understand, but I get the impression the two are closely intertwined, more so than with C++.

Collapse
 
delta456 profile image
Swastik Baranwal

If you have tried dynamic and scripting languages then this will be easy for you. I have learned languages of different category.

Collapse
 
k_penguin_sato profile image
K-Sato
Collapse
 
deciduously profile image
Ben Lovy

This looks really cool, might have to buy this too. Thank you.

Collapse
 
brownio profile image
Antonio Djigo

I learned with Michael Hartl's Rails Tutorial last year, can't complain!

Collapse
 
andevr profile image
drew

Hey Ben,

I've been learning Ruby lately. I'm using a course on Udemy The Complete Ruby on Rails Developer course, and the Headstart Ruby book. Ruby seems super easy to learn compared to other languages, compared to Java and Javascript anyway.

Collapse
 
funcke profile image
Jonas Funcke • Edited

OK so you need the following things:

  • A Computer
  • Mustard
  • A paperclip

And (I can't stress this enough)

  • A life-size cutout of a capybara

Jk...
I used rubymonk.com/
And can really recommend: "effective testing with rspec 3" (p.s. it also got some nice stuff about Sinatra - API DSL - :D)
And of course follow the ruby tag on here :D

Collapse
 
francelwebdev profile image
Francel

Hello, I am also a Ruby developer and I am in Africa, I would like to learn more about Ruby and Ruby on rails and become better, that's why I would like to ask you if you can give me your lessons. from ruby ​​or ruby ​​on rails from udemy or whatever.
thank you so much

Collapse
 
deciduously profile image
Ben Lovy

I'm currently just using the official documentation! Good luck :)

Collapse
 
erikwhiting88 profile image
Erik

Sandi's book is one the best. There's another good one called Mastering Ruby Closures by Benjamin Tan Wei Hao. Good luck!

Collapse
 
deciduously profile image
Ben Lovy

Awesome, thanks for the link. I already bought POODR and have to say it's already one of the best books on software I've read to date, having only completed the first two chapters. Wide-ranging wisdom that far exceeds just Ruby.

Collapse
 
ngarindungu profile image
Ngari Ndung'u

I got my start with the ruby koans. Was great for quickly picking up syntax and served as my intro to TDD.

Once you reach enlightenment the files also serve as a good quick reference.

Collapse
 
deciduously profile image
Ben Lovy

Excellent, thanks so much!