Learn Ruby on Rails

How I helped 200+ developers jumping from another framework to Ruby on Rails

Throughout my journey as a Ruby on Rails developer, many developers asked me what was the best way to jump from another programming language (Go, PHP, Python, Javascript, etc..) to Ruby and Ruby on Rails.

As an agile developer, I iterated through my methodology for each developer.

So, I decided to share this methodology with you, that’ll help you to learn Ruby and Ruby on Rails in order to write code eligible for production in one to four weeks — as a junior developer, of course.

This tutorial is crafted for developers that have at least one experience in web development. For the others, I can’t guarantee that it’ll take between one and weeks. But this way to learn the framework is still relevant for you guys.

Before to start

I’m thrilled to share with you our latest project: Fun Facts about Ruby — Volume 1

Please feel free to spread the word and share this post! 🙏

Thank you for your time!

Can I have 15 minutes of your time?

This section is probably the most important of this blogpost. Indeed, Ruby and the Ruby on Rails framework are very special. If you come from another background it can take years to understand the philosophy behind Ruby. The approach for writing Ruby code is totally different than other languages. Of course, you can write Ruby code like PHP or Javascript. And your code will work. But you’ll miss the whole point.

So, before to start learning Ruby I’d strongly advice you to have a close look to these 3 resources:

That’ll take ~15 minutes of your time. But at the end, you’ll understand what’s the purpose of Ruby and why you should reshape your current developer mindset for Ruby.

Learn everything you need to know about Ruby in 30 minutes

Ruby is really beginner-friendly. It won’t take more than an hour to learn the basics. Indeed, as it’s a really intuitive language, you’ll be able to guess the code to write to achieve what you want in record time.

The official website provides a 30 minutes tutorial that I strongly advice you to follow. The tutorial is very educational.

Become a junior Ruby on Rails developer

Note that it’ll be even easier to learn Ruby on Rails if you’re familiar with the MVC framework.

The Ruby on Rails framework

You need to be familiar with 4 parts of the framework in order to write production code. In the following order:

After that, You can follow the Getting Started with Rails official tutorial. That’ll help you to digest and reinforce your knowledge. You can be comfortable with these notions in two days.

Coding in a realistic environment

Now that you are really familiar with the basics of Ruby and Ruby on Rails, it’s time to learn to write production code. Indeed, in addition to your knowledge you need to learn the most common libraries that allow you to write a more realistic web application (authentication, assets managements, uploads, ACLs, background jobs, test coverage, etc..). For this purpose, video tutorials can be a good way to learn these skills. Indeed, a more experienced developer that explain you how to build a production ready web application in an hour is a valuable asset.

I actually found a tutorial that proposes to do a clone of Instagram using Ruby on Rails. I advice you to watch it twice and reproduce the code to get familiar with the Ruby on Rails ecosystem. Once you get comfortable with the code and libraries provided in this tutorial (or some other that you found) you will be ready to start coding with Ruby and Ruby on Rails.

Additional resource

Here, are few resources to go further:

Conclusion

With this methodology and a bit of discipline (and resilience), you’ll be able to write production code as a junior developer within one to four weeks.

Voilà!