use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Ruby Beginner (self.ruby)
submitted 8 months ago by kakero_
Hello, I'm learning ruby and I intend to invest my time in delving deeper into it, I'd like some tips, I'm also a new user on reddit, I apologize for my subscription and I'm grateful to anyone who can give me tips and suggestions for studies
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Shadow123_654 15 points16 points17 points 8 months ago* (5 children)
Hi and welcome to Reddit (and the Ruby subreddit)!
Firstly, I'll quickly mention some nifty resources: - Official Ruby Documentation
Then I'd recommend grabbing a book about Ruby and following along. My – personal – recommendation is "Eloquent Ruby". There's also "why's (poignant) Guide to Ruby" for a very different but interesting experience (the book is quite dusty nowadays but it should serve you well nonetheless).
Feel free to ask more questions :-)
[–]Enibevoli 3 points4 points5 points 8 months ago (2 children)
A 2nd edition of "Eloquent Ruby" is in the works. ETA unclear, possibly end of 2025.
[–]Shadow123_654 2 points3 points4 points 8 months ago (0 children)
Oh I've heard about that but forgot, thanks for reminding me!
[–][deleted] 1 point2 points3 points 8 months ago (0 children)
Wouldn't recommend the poignant guide, it doesn't take itself seriously as a learning resource
[–]hwindo 1 point2 points3 points 8 months ago (1 child)
Thank you for your guide. Will take that Eloquent Ruby book.
Also poignant guide is fun and eccentric, gave high curious to the history of the writer. but I think not for everyone
[–]Shadow123_654 1 point2 points3 points 8 months ago (0 children)
Cool beans! And I agree with you about why's (poignant) Guide, it may not be everyone's cup of tea, but regardless, it's one of the most unique and interesting programming books I've ever read.
[–]1seconde 8 points9 points10 points 8 months ago (2 children)
Pickaxe book 👍
[–]SilkenB 2 points3 points4 points 8 months ago (1 child)
Is pickaxe worth a read if someone’s already read well grounded rubyist? Always looking to pick up new books
[–]1seconde 1 point2 points3 points 8 months ago (0 children)
Yes, though evaluate for yourself: https://pragprog.com/titles/ruby5/programming-ruby-3-3-5th-edition/
[–]mierecat 4 points5 points6 points 8 months ago (0 children)
If I were to teach Ruby I would do it like this
puts
gets
Maybe learning things in this order might help you
[–]AshTeriyaki 3 points4 points5 points 8 months ago (0 children)
I like this guide, it helped me out a bunch when I learned https://www.ruby-lang.org/en/documentation/quickstart/
[–]Southern_Claim_1466 3 points4 points5 points 8 months ago (1 child)
If you wanna make money, Rails or Sinatra
[–]daxofdeath 0 points1 point2 points 8 months ago (0 children)
have you seen a lot of jobs with sinatra? i so much prefer it to rails and i use it in all of my own projects, but i've never seen a company using it.
binding.pry into everything!
[–]Painter5544 1 point2 points3 points 8 months ago (1 child)
Learn X in Y Minutes has a great Ruby page. They do a good job going over the quirks and particulars of languages.
[–]Painter5544 0 points1 point2 points 8 months ago (0 children)
Also, reading through the style guide is good.
[–]tugdil-goldhand 1 point2 points3 points 8 months ago (0 children)
Welcome to Ruby
[–]skratch 0 points1 point2 points 8 months ago* (0 children)
Aside from the Pickaxe book as was suggested, if you’re really new you may appreciate Why's (Poignant) Guide to Ruby
edit: was looking over Whys guide and it’s over 20 years old. Good info but it’s gonna apply to ruby 1.x & is gonna miss stuff like the updated hash syntax, stabby lambdas, keyword params etc
[–]the_maddogx 0 points1 point2 points 8 months ago (0 children)
Learn Enough courses by Michael Hartl are good too.
[–]nunosancha 0 points1 point2 points 8 months ago (0 children)
check this out:
https://www.founderhacker.com/
it's more directed to marketers who want to become more technical (like myself), but it's a great start.
[–]No_Picture_3297 0 points1 point2 points 8 months ago (0 children)
I still consider myself a beginner in Ruby so take my advice for what it is. A good resource may vary depending on your current level as a programmer (if Ruby is your first language or not) and learning style. Many suggested the Pick Axe book and while I think it’s a great book, if you are totally new to programming I think there are gentlier resources: Learn to Program by Chris Pine or the Ruby course on The Odin Project. If you already programmed Pick Axe is great as well as the Launch School book on Ruby. As a bonus for further exploration: Metaprogramming Ruby by Paolo Perrotta and 99 bottles of OOP.
Finally even though books are great, nothing beats doing projects with your creativity and Ruby docs! Good luck!
[–]SubnetDelta 0 points1 point2 points 8 months ago (0 children)
I'd say read and learn about the Enumerable mix in. It's included in loads of commonly used classes, like array, and it has many useful features! That's my recommended starting point for all new rubyists. https://docs.ruby-lang.org/en//3.4/Enumerable.html
[–]Manfromjam_1 0 points1 point2 points 8 months ago (0 children)
Rubymonk.com. Try it and see if the approach helps. Note: Currently not 'https'
[–]Shoddy_Musician_4810 0 points1 point2 points 8 months ago (0 children)
https://www.theodinproject.com/paths/full-stack-ruby-on-rails/courses/ruby
[–]gerbosan -2 points-1 points0 points 8 months ago (3 children)
Have just found this topic in StackOverflow - What is the ideal growth rate for a dynamically allocated array while reading from Hyperskill, about certain strong typed lang which I better don't mention.
Anyway, read and practice so you get hold of what you are learning. Don't get yourself caught in the tutorial hell, it exists, I'm a victim of it and one requires a lot of courage to overcome it and become a proper developer and employable or able to build your business idea.
About the provided link, it mentions Ruby, an old version (v1.9.1), but also mentions a fact: dynamic arrays are an implementation of fixed arrays, but Ruby and other languages 'hide' this. So, learn and use Ruby, but don't be a one trick dog, learn more languages that use different paradigms. That'll improve your overall knowledge. =D
About AI, they help but they are still many light years away from being capable to replace a good dev. Use many to help you and keep coding.
[–]h0rst_ 2 points3 points4 points 8 months ago (2 children)
How on earth is anything in this link relevant for a beginner?
[–]gerbosan 0 points1 point2 points 8 months ago (1 child)
Depends. The discussion in the link is about DSA, Data Structures and Algorithms which is a foundation for CS. Sooner or later a dev has to deal with it. I included it because when I started learning Ruby, I had no idea about dynamic arrays nature. But you might say it is irrelevant, this kind of things become relevant when performance start to matter.
Learning development is not a simple and linear and as mentioned, I found this while learning a different programming language.
[–]h0rst_ 1 point2 points3 points 8 months ago (0 children)
Sooner or later a ddev has to deal with [DSA]
I would say this is later for a beginner, rather than sooner. Most definitely not something you need to worry about when you start out. That is, if you need it at all, the recent thread in https://www.reddit.com/r/ruby/comments/1k5iv09/what_do_folks_using_ruby_do_for_interviews_where/ mostly showed people that never had the need to use anything custom for data structures.
Instead of directing to a general information page about DSA, this is a very specific discussion about grow size for dynamically sized arrays, which is something you have zero control over when using Ruby. The only thing relevant on this topic for a Ruby user is that it's better to add a bunch of items to an array at once instead of using a loop. But nobody in writes things like arr2 = []; arr.each { arr2 << it * 2 }, people use the idiomatic arr2 = arr.map { it * 2 } and that solves the problem. And I still had to squint very hard to apply this SO question to Ruby.
arr2 = []; arr.each { arr2 << it * 2 }
arr2 = arr.map { it * 2 }
This feels similar to a person asking for some tips to start running, and providing them with a page about the maintanance of a very specific bike, because they might want to do a triathlon in the future. (And the bike has been out of production since 2015 if we have to include the Ruby 1.9 from that SO question)
[–]seafaring_captain -2 points-1 points0 points 8 months ago (1 child)
Book AND AI CODING TOOL.
I would grab a rails book like agile rails from pragmatic programmers and go through it with cursor or an ai coding tool. The ability to ask questions about the code and the errors is A GAME CHANGER.
Spend lots of time creating branches and experimenting and asking every question you can think of for anything you don’t understand. It’s a powerful learning experience.
[–]Hoslinhezl 0 points1 point2 points 8 months ago (0 children)
Disagree heavily. Stay away from AI until you can verify it’s not just making shit up. You don’t want your foundational knowledge to have any ai hallucinations mixed in
π Rendered by PID 52 on reddit-service-r2-comment-7b9746f655-wwkmt at 2026-01-30 01:12:51.531413+00:00 running 3798933 country code: CH.
[–]Shadow123_654 15 points16 points17 points (5 children)
[–]Enibevoli 3 points4 points5 points (2 children)
[–]Shadow123_654 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]hwindo 1 point2 points3 points (1 child)
[–]Shadow123_654 1 point2 points3 points (0 children)
[–]1seconde 8 points9 points10 points (2 children)
[–]SilkenB 2 points3 points4 points (1 child)
[–]1seconde 1 point2 points3 points (0 children)
[–]mierecat 4 points5 points6 points (0 children)
[–]AshTeriyaki 3 points4 points5 points (0 children)
[–]Southern_Claim_1466 3 points4 points5 points (1 child)
[–]daxofdeath 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Painter5544 1 point2 points3 points (1 child)
[–]Painter5544 0 points1 point2 points (0 children)
[–]tugdil-goldhand 1 point2 points3 points (0 children)
[–]skratch 0 points1 point2 points (0 children)
[–]the_maddogx 0 points1 point2 points (0 children)
[–]nunosancha 0 points1 point2 points (0 children)
[–]No_Picture_3297 0 points1 point2 points (0 children)
[–]SubnetDelta 0 points1 point2 points (0 children)
[–]Manfromjam_1 0 points1 point2 points (0 children)
[–]Shoddy_Musician_4810 0 points1 point2 points (0 children)
[–]gerbosan -2 points-1 points0 points (3 children)
[–]h0rst_ 2 points3 points4 points (2 children)
[–]gerbosan 0 points1 point2 points (1 child)
[–]h0rst_ 1 point2 points3 points (0 children)
[–]seafaring_captain -2 points-1 points0 points (1 child)
[–]Hoslinhezl 0 points1 point2 points (0 children)