Why prefer the use of a collection over loop
How to improve your Rails performance by 90% with a simple change
Oct 6, 20222 min read50
Search for a command to run...
Articles tagged with #ruby
How to improve your Rails performance by 90% with a simple change
The Execute Around it's a pattern that lets us simplify our code and make more clean and easy to read. Basically, the main focus of this approach is to abstract all the code that we want to happen before and after some code in the middle that can cha...
In Ruby there are many methods that accept blocks, one of the first that comes to mind is the times method that allows us to run specific block X times. Now it's time to learn how to create a method that can accept (and use) a block. Everything is d...
Or how to simplify and shorten your loops