TILs - Fueling Curiosity, One Insight at a Time

At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.

Published
Author
user-image
Manu
You can scope relations like has_many, has_one and belongs_to. Eg: has_one :policy, -> { where active: true }
Published
Author
user-image
Akshay
We can make use of ActiveRecord's unscoped method to accept a blocks, such that we can obtain associations bypassing the default scope on the associations.
Published
Author
user-image
Akshay
We can make use of Set instead of an Array in Ruby when we would like to create sequences without duplicates and also can be used to compare two sets disregarding order as compared to array for which order of elements matter.
Published
Author
user-image
Yuva
Co-founder
When using docker-compose and when in doubt that containers are getting cached, pass --build option. Works like charm
Published
Author
user-image
Mrinmoy
chrome://net-internals
Published
Author
user-image
Amit
use chrome(v65 and above) local overrides to modify a webpage's assets and store on your local which will be loaded everytime you open the website - https://www.youtube.com/watch?v=UOn0b5kn3jk

Showing 70 to 72 of 82 results

Ready to Build Something Amazing?

Codemancers can bring your vision to life and help you achieve your goals