Ruby on Rails: Pros & Cons. Things to Consider When Choosing the Technology

Photo of Michał Poczwardowski

Michał Poczwardowski

Updated May 26, 2024 • 11 min read
Ruby on Rails: Pros & Cons

Selecting a technology in which you will develop a web app is a challenge that every product or business owner has to face.

If you make the right choice, it will give you a solid base for growth and expansion. If you choose wrong though, it may cost you an arm and a leg.

Ruby on Rails (RoR) is a popular web framework for web applicationdevelopment built on the Ruby programming language. As a development, RoR offers many components of a successful web project, such as an ORM (Object Relational Mapping) system for business data and logic, routing, and application management out of the box. Still, to decide whether RoR is a good fit for your project, you need to know what makes this framework different from others. To help you build a deeper understanding of RoR, we are going to give an overview of its main strengths and limitations.

Pros of using Ruby on Rails to develop your Web app

1. Best Industry Standards

Ruby on Rails is an opinionated framework which means it guides you into their way of doing things. It promotes the best standards and practices of web development.

The central pillar of the Rails philosophy is the DRY (Don’t Repeat Yourself) principle that ensures a clear separation of concerns and maintainability of your application. The framework embraces the principle of ‘convention over configuration’, according to which Rails defaults to a set of conventions that specify the best way of doing many things.

Rails is also built around the MVC (Model-View-Controller) philosophy that promotes modularity and extensibility of your applications. This means that no matter how complex your application is, it can be easily extended with new features and business logic.

Just to illustrate the level of complexity one can achieve with RoR, take a look at GitHub. This is the largest repository of source code in the world, built on a complex architecture of version control and distributed software development. All this complexity is successfully managed by an RoR framework.

2. Speed of Development

RoR was created with the high velocity of prototyping and application development in mind. Its well-developed system of modules, generator scripts, and an efficient package management system allow scaffolding a complex application in just a few commands.

One can achieve rapid application development thanks to the expressive and concise nature of Ruby language, and also to dozens of open-source libraries for just about any purpose, which the Ruby community calls ‘gems’.

As an added bonus, Rails ships with a default ORM system (ActiveRecord), which helps developers quickly put application and data logic together and deploy a fully functional prototype to be expanded with new features later.

According to FastCompany, software development is an expensive part of a startup journey which doesn’t have an end. Environmental risk, such as law changes and third-party dependencies’ updates, means that there is some extra work for developers. The time span from the first noticeable change to production delivery should be as short as possible. Read more about speed of development in Ruby on Rails.

app_built_in_ruby_on_rails

Leveraging Ruby on Rails to build an app that aims at bridging the generation gap.

3. Vibrant RoR Community

Rails is an open-source web framework supported by a vibrant community of talented developers. Using RoR in their own projects, Rails developers are interested in the constant improvement of the code base and incorporation of new functionalities. As a result, with Rails, there is no need to reinvent the wheel in your projects.

RoR’s ecosystem contains many “gems”, i.e. pieces of software that can be incorporated into your project. Ruby community takes care of that. Almost any functionality you might need for your web project has already been created.

A vibrant community that runs Rails also ensures that the framework is regularly updated, issues are fixed, and security is kept up-to-date with the best industry standards.

4. Cost-effective development

You don't have to spend a lot of time and money on the development stage because it boasts of rapid development. Rapid development means less money spent on things that could take time.

RoR developers are available on the market at reasonable prices. In fact, the framework is the first choice for beginning web developers due to its low learning curve.

Moreover, due to the obvious framework's simplicity, maintaining your application does not necessitate a significant expenditure. Rails is an open-source framework, there are no license costs to pay.

If you don't want to blow your budget on web development, Ruby on Rails consulting is one of the best options.

Cons of using Ruby on Rails to develop your Web app

1. Runtime Speed and Performance

One of the most frequent arguments against RoR is its ‘slow’ runtime speed, which makes it harder to scale your RoR applications. While it’s true that other top environments and frameworks (Node.js or Django) are somewhat faster than RoR, it is unlikely that your application will witness performance bottlenecks, unless it has a user base comparable to such large websites as Twitter.

In most cases, performance issues your RoR application will face will be linked to the server or database architecture and the skillfulness of your engineering team rather than RoR itself.

Performance considerations should be still kept in mind, though. Twitter, for example, struggled to improve RoR’s performance that deteriorated after the social network became very popular. Although Twitter did not abandon RoR completely, it had to replace certain internal communication components and server daemons with Scala solutions.

2. Lack of Flexibility

RoR is an opinionated framework with a lot of hard dependencies and modules included out of the box. To kickstart the project, your developers should configure routing, database migrations, and other modules shipped with the framework.

These default modules are good if you want to create an application with some standard functionalities, but they might backfire on you if you have something unique in mind. In this case, it may be harder to adjust RoR to your product’s needs.

At some point, you will have to make a difficult choice between giving a deep overhaul to your Rails application or using another framework that better suits your needs.

3. High cost of wrong decisions in development

Wrong architecture decisions during the initial stages of your project might cost you more in Rails than in any other framework. Since prototyping with Rails is incredibly fast, an engineering team inexperienced in Rails might make unobvious mistakes that will erode your application’s performance in the future.

These structural deficiencies will be hard to fix because Rails is an open framework, where all components are tightly coupled and depend on each other.

For instance, too much reliance on ActiveRecord makes an application logic tightly coupled with database models, which leads to maintainability problems in the long run.

4. Documentation

It can be difficult to locate reliable documentation. In particular, for less popular gems and libraries that make extensive use of mixins.

You'll frequently discover that the test suite acts as documentation, and you'll rely on it to understand behavior. This isn't necessarily a bad thing because the test suite should be the most up-to-date representation of the system. However, it can be frustrating to have to dive into code when written documentation would have been much faster.

Conclusion

Ruby on Rails is definitely one of the best web development frameworks to consider for your next project. With RoR you can do pretty much the same as with other good frameworks.

The excellent community, a quality code base, the sheer size of the module database, and the maintainability of RoR applications made it the preferred choice for such successful projects as Airbnb, GitHub, BaseCamp, Zendesk, and Bloomberg.

However, the devil is in the detail. RoR is surely development and budget requirements.

On the other hand, a less opinionated framework such as Node.js may be a better choice for innovative web development solutions that require a total control over the framework architecture, modules, database integrations, and server deployment. The same will apply if you are building I/O-heavy Real-Time Applications for which performance and scalability are a major concern.

Photo of Michał Poczwardowski

More posts by this author

Michał Poczwardowski

Michal was born in a beautiful city of Gdansk, wherein he spent all his life. He graduated from the...
Build impactful web solutions  Engage users and drive growth Start today

Read more on our Blog

Check out the knowledge base collected and distilled by experienced professionals.

We're Netguru

At Netguru we specialize in designing, building, shipping and scaling beautiful, usable products with blazing-fast efficiency.

Let's talk business