DEV Community

Cover image for Rails - Convention Over Configuration
Biagio J Mendolia
Biagio J Mendolia

Posted on

1

Rails - Convention Over Configuration

When starting the Rails Curriculum, the concept of convention over configuration was said to be the basis of Ruby on Rails. The Rails framework has provided developers with an environment designed to get more done, in a shorter time with less code. Convention over configuration is defined as a software design paradigm that attempts to minimize the number of recurring decisions that a developer needs to make. In Rails, the repetitive part of programming is abstracted away to allow you to focus more on problem solving. I’ve noticed that the naming conventions in the Rails framework follows a natural/sensible thought process. For example, when using the resources macro for the application routes, it creates the 7 RESTful routes and provides url helpers with appropriate naming. It’s conventions like this that help cut out a bunch of time in the developing process. Convention over configuration in Rails allows you to focus more on problem solving by abstracting the repetitive stuff away! Being new to the programming world, I thought Rails would be extremely difficult for me to learn. However, I’ve found that the constant use of convention over configuration has made everything in the framework come together very naturally.

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay