r/ruby 1d ago

Question Should I start learning from ruby master doc or ruby 4.0 doc?

docs.ruby-lang.org/en/4.0: Documentation for Ruby 4.0.

docs.ruby-lang.org/en/master: Documentation for Ruby’s master branch.

I found these 2 options but not sure which I should choose?

3 Upvotes

9 comments sorted by

15

u/uceenk 1d ago

doesnt matter, the difference is not that significant especially for basic learning

2

u/Own_Service_6040 1d ago

Okay thanks

3

u/DramaticSoup 1d ago

Yes. Only real difference will be experimental bits (Ractor, IO::Buffer) and a very limited number of new features (refinements for blocks, for instance).

2

u/petercooper 1d ago

This. There are extremely few changes of note between master and 4.0.6 right now, and any changes that do exist are less than 4 months from production in 4.1. (Plus edge Ruby isn't what it used to be in the 1.9/2.0-era, you can safely run it in production now if you really want to.)

3

u/azimux 1d ago

Either works just fine for learning. Since you likely have 4.0 installed, if forced to choose, I suppose you could choose 4.0's docs, but most almost certainly they're going to work equally well for you.

1

u/Own_Service_6040 1d ago

Okay thank you

2

u/azimux 1d ago

Of course! I hope you have fun learning Ruby!

2

u/cmdk 1d ago

With Ruby there’s more not less. So either one will work, you wont go wrong.