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.
The core idea of RoR is a complicated sounded Model View Controller (MVC) principle, which outlined on the picture.
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.
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
Where to StartIf 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.