The State of Rails in 2021
When it comes to using back-end frameworks, a plethora of choices are available to the developer. First and foremost, the choice of picking the right framework can be a challenge in and of itself. This choice is dependent on variables an a number of variables such as: deployment speed, scalability, working with pre-existing code, or popularity/usability of the framework. These are important factors to consider when debating how Rails stands in comparison to other available frameworks. Rails was developed 15 years ago on the back of Ruby’s rising popularity in the mid-2000s [1, 2]. It gained its prominence in the realm of back-end frameworks as a result of Ruby’s popularity and its user-friendly and accessible nature. As of 2021, with the state of web-development, Rail’s popularity has decreased with newer frameworks rising in popularity due to the emergence of diverse languages . With this in mind, is it valuable to learn Rails considering it is a “dying framework”? Should we accept the potential fate of the framework, disregard its popularity with previous developers, and learn the more popular frameworks in 2021? When critically analyzing this topic, developers must consider both the positives and negatives of Rails.
Rails is opinionated — It uses the Model, View, and Controller (MVC) model
- The MVC model is a pattern in which web developers use that keeps application logic separate and organized. With Rails, the MVC model is directly built into the framework.
- While this can easily be written as a negative quality, being that the MVC model is directly built into Rails, it can lead to devs writing less erroneous code and allow Devs to understand a model in which a lot of websites are built on, even if they don’t use Rails.
Maintain existing websites
- It’s important to consider that Rails is being used by many popular websites that millions of users visit daily. A few notable examples are Github, AirBnb, Twitter, Shopify, etc. . With so many popular websites using Rails, it provides a strong sales value proposition and concrete proof that Rails is not still relevant and a popular choice for developers.
Fast Development Speed
- Given that rails has the MVC model built into its framework and the quickness of writing Ruby, we can deploy apps very quickly. An additional bonus of Rails being implicit, it can make code easy to read.
- As Rails was developed in 2004 the framework has proven itself to be tried and tested by millions of developers . As a result, a lot of the problems with the framework have been identified and innovated, establishing Rails as a seamlessly usable framework.
Popularity is decreasing
Rails is a heavy framework
- As developers/engineers, we struggle with the problem of optimization . How good is good enough? The infrastructure in which Rails is built requires immense processing power which, in turn, can make Rail’s applications slower and more difficult to scale. In modern day development, we have hardware that can compensate for this (Shout out to Moore’s Law), however given there are other, more lightweight frameworks out of the box, Rails literally ‘lags’ behind its competitors.
Rails is opinionated
- Rails being Rails, is opinionated. Yes I said this is a plus, but let’s examine this point again. An opinionated language means that we are confined as a developer to what the framework allows us to do. There is no wiggle room to be had, stifling the creativity and ingenuity of developers. Given we are boxed in by the framework, creating a niche product within those parameters is challenging at best and impossible at worst. Flexibility in a framework is crucial given the needs and demands of our clients.
Rails has a learning curve
- A learning curve is true for any language or framework, but this is particularly important to consider when dealing with a language like Ruby. While Ruby was designed to be an easy to read language and Rails follows suit, the simplicity can be misleading. This is due to the fact that Ruby is implicit to read, and therefore more challenging to translate into more explicit languages. This creates a challenge when looking to identify bugs in the program, as they are wrapped in the veil of implicit understanding.
Rails is like any other framework in our industry, it has advantages and disadvantages. In recent years there has been a large growth in other languages and frameworks, resulting in developers gravitating toward more popular languages. Rails has clung to its previous prominence and is still being used by millions of websites despite the fierce competition in development today. It has a solid foundation in the back-end framework realm and as such, we cannot disregard it as a “dying language” and deem it obsolete. As developers, we have to maintain an open mind, adaptability, and a desire to utilize both modern and more dated frameworks, and apply whatever framework best fits our needs.
 David Hansson, “Rails 1.0: Party like It’s One Oh Oh!,” Riding Rails (blog), December 13, 2005, https://weblog.rubyonrails.org/2005/12/13/rails-1-0-party-like-its-one-oh-oh/.
 “TIOBE Index For 2021,” TIOBE, accessed April 02, 2021, https://www.tiobe.com/tiobe-index/.
 “Octoverse,” Github Inc., accessed April 03, 2021, https://octoverse.github.com/.
 Tim Huebsch, “18 Popular Websites Built With Ruby On Rails (And Where To Learn It),” Lighthouse Labs (blog), June 11, 2020, https://www.lighthouselabs.ca/en/blog/popular-websites-built-using-ruby-on-rails.
 “2020 Developer Survey,” Stack Overflow, accessed April 02, 2021, https://insights.stackoverflow.com/survey/2020#technology-most-loved-dreaded-and-wanted-languages-dreaded.