MolinosBlog

Ruby on Rails overview for beginners

17 September 2017
Preview 5936549 large
Gleb Baskhanov
Head of Digital Marketing Department

It often happens when for some reason people bump into learning a programming language. If the person doesn’t prone to study for a long and even worse doesn’t have a mathematical mindset every attempt ends right after installation. Ouch! It often hurts. We decided to provide a short and simple overview of the Ruby on Rails to alleviate the process for beginners.   

For a start let’s reveal the first secret which is Ruby on Rails (RoR) name. Easy peasy, Ruby is a language which you should use and Rails is a set of programs (framework) where you can manage apps including databases and browser output.

Architecture

The core idea of RoR is a complicated sounded Model View Controller (MVC) principle, which outlined on the picture.

Source https://www.linkedin.com/pulse/model-view-controller-mvc-mohammed-aldini

A user sends a request and expects to get a feedback when a specific web page opens, but under the hood, the most interesting stuff happens. A model is any form of database and can be a product catalog, a view can be described as HTML file with Ruby language insertions, whereas a controller serves for a logic of the app and describes how to respond to a specific external web-browser request. Generally, after installation process, you will have an interface where you can just manage all of this MVC parts.

Another significant notion of the RoR is Gem. It’s an analog of the plugins or modules, which you can hook up to your app. Basically, you can use those gems as a constructor without noticeable changes depending on the solution you want to get. For instance, this includes authentication, admin panels, human-friendly web addresses and more.

Pros

Ruby on Rails has various pros. Besides it has extensive capabilities of using JavaScript libraries, it’s worth to mention that Ruby on Rails works perfectly with classical databases (e.g. MySQL and PostgreSQL) as well as with non-relational databases (e.g. MongoDB).

Those pros mixed with framework simplicity created a genius much less effortlessly development environment. You can apply one line of code instead of three and finally create a social-networked platform in less than 24 hours. This lead to the tendency that the technology was embraced by a bulk of well-known startups.

Ruby vs. Others

It’s always a discussion topic on which language to choose and this disturbs newbies. We would just say “Just Do It”, but if you need a proof check Google Trends. According to this tool popularity of the languages like Ruby, Python, JavaScript are at the same level.

Where to Start

If you know something about HTML and web site architecture, we recommend you to start with Derek Banas https://www.youtube.com/watch?v=GY7Ps8fqGdc

Well, that’s it, we hope this article will make the road less bumpy and you will have fewer problems on your way of becoming top notch programmer.