In an ideal world where you are immortal, have infinite time, are the best programmer in the world, and it doesnโt matter if you run your product in 1 hour or 10 years so that you can encode everything yourself from scratch, and then maybe meaning to avoid other people's code.
But in the real world, people have already solved the problems for you. And gems allow you to connect these solutions.
A good rule of thumb is to prefer your favorite / popular community stones for this solution when you can. The more people use the gem, the more people are interested in updating it, and the more eyeballs carefully study it and send requests for traction. Most likely, a stone tested by a group of people under production conditions is better than what you came up with on your first attempt, right?
Gems that depend on one supporting hobby that donโt even use it in a self-monitoring app is where you tend to find a certain risk. But even in such situations, if you end up having to shell out your gem, you are still ahead, where you would be if you started from scratch.
The best trend is to avoid writing everything from scratch and instead use the brains of other people with similar needs.
source share