Live data from Hacker News

Ask HN: Learning Ruby on Rails in 2022

news.ycombinator.com

11–16 of 16 posts

Re: Ask HN: Learning Ruby on Rails in 2022

#13
post #2

There's no best way, my friend. Hartl's tutorial was where I started, many years ago. I think he keeps it updated. The best way to learn web dev is to build the thing you want. You'll learn what you need as you go.

This was my approach to learning Ruby on Rails when I joined a startup using it 2 years ago. This is also my standard approach learning anything new since I started programming.

I would like to augment this advice with the very helpful but rarely mentioned step of actually reading through all the docs eventually and learning best practices from research on blog posts, open source projects, and other internet communities. This is especially important when learning a technology in the absence of a mentor/senior developer.

In the past, I’ve been burned thinking I built up a serviceable knowledge through learning as I go on my own projects. This approach is a great way that falls in line with the fact that a lot of new technologies are still just the same old fundamentals, but it’s important to recognize that true skill in a specific technology requires that extra, quite laborious, step.

Re: Ask HN: Learning Ruby on Rails in 2022

#14

I am not kidding, despite all the youtube tutorials & online guides, this one hit the nail. Follow everything in your pace, and ready everything thoroughly. https://guides.rubyonrails.org/getting_started.html

Yeah! I've worked in some medium/large Rails shops and these are overlooked to a crazy degree.

Re: Ask HN: Learning Ruby on Rails in 2022

#15
post #2

There's no best way, my friend. Hartl's tutorial was where I started, many years ago. I think he keeps it updated. The best way to learn web dev is to build the thing you want. You'll learn what you need as you go.

I agree with you that building the thing you want is the best way to learn.

However, for an "opinionated" framework like Rails, it's really best if you read through the official (brief, and IMHO excellent) guides so you can get a feel for the basic opinions baked into Rails.

https://guides.rubyonrails.org/

Otherwise you're going to be fighting the conventions the entire way.

Re: Ask HN: Learning Ruby on Rails in 2022

#16
post #6

I started with Sinatra first, the goal is to actually learn Ruby. Then i go with Ruby on Rails, with help of some good tutorials. The point is, get accquainted with git, rails convention, testing and deployment. Skip the Javascript part as most as possible first. The important thing on this journey, is you'll eventually love Ruby, let it drive your fun, curiosity and happiness along the way. Good luck!

Agree. Learning Ruby first is really valuable.

Frameworks like Rails extend Ruby rather seamlessly. If you're entirely new to both Ruby and Rails, that's a looooooooooooooooot.

If one must absolutely must learn everything in a day or two, one can probably just look at the official Rails Guides. That is sufficient to write a Hello World or simple CRUD app, and Ruby is simple+friendly enough not to pose a challenge.

However, getting familiar with Ruby outside of Rails is highly recommended. It's fast and easy to learn. As a bonus IMHO you don't need the more complex bits (metaprogramming, etc) for typical Rails app development.

Post reply on HN