All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

What is the Vanilla Rails approach?

Post cover: What is the Vanilla Rails approach?
This content has been automatically translated from Ukrainian.
Vanilla Rails approach - is an approach to development in Rails where you try to use only the basic capabilities of Rails without additional gems or libraries to solve tasks.
In other words: you work with what Rails provides "out of the box" - ActiveRecord, ActionController, ActionView, ActionText, ActiveStorage, ActiveJob, etc., instead of connecting third-party solutions for each task.
Pros of Vanilla Rails approach:
  • Fewer dependencies - easier to maintain and update the project.
  • Better understanding of how Rails works "under the hood".
  • Less chance of running into gem conflicts or unknown bugs from third-party libraries.
Cons:
  • It may take more time to implement certain features that are already available in gems.
  • Some complex functions will have to be written yourself, rather than using ready-made solutions.
Example:
Instead of using gems like mobility or globalize for translations, in Vanilla Rails you can create your own module/concern for translating attributes using only ActiveRecord and ActionText.

This post doesn't have any additions from the author yet.

What is memoization in Ruby?
30 Oct 10:17

What is memoization in Ruby?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
is_a?, kind_of?, instance_of? — how does Ruby check the type of an object?
30 Oct 19:55

is_a?, kind_of?, instance_of? — how does Ruby check the type of an object?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
&& vs and — the difference in Ruby that can break your code
30 Oct 20:23

&& vs and — the difference in Ruby that can break your code

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
Variables in Ruby: @, @@ and class instance variable
30 Oct 20:54

Variables in Ruby: @, @@ and class instance variable

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
The difference between blank?, present?, empty? and nil? in Ruby
30 Oct 21:06

The difference between blank?, present?, empty? and nil? in Ruby

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
What is Middleware in Ruby on Rails and when is it used
04 Nov 10:39

What is Middleware in Ruby on Rails and when is it used

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
What is Elasticsearch and how does it work?
22 Nov 12:35

What is Elasticsearch and how does it work?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
What is a time-series database?
22 Nov 12:42

What is a time-series database?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
22 Nov 12:49

What is VACUUM in PostgreSQL?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
What is a B-Tree (Balanced Tree)?
22 Nov 12:58

What is a B-Tree (Balanced Tree)?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska