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.
Apr 10, 2018
http://jsnice.org/ not a TIL, but lost and found it only today. This is a reverse tool that can be run on minified JS to get some more human readable ouput
kashyap
Apr 9, 2018
You can scope relations like
has_many
, has_one
and belongs_to
. Eg: has_one :policy, -> { where active: true }
manu
Apr 3, 2018
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.
akshay
Mar 28, 2018
mock moment using jest http://www.bambielli.com/til/2018-01-07-mocking-constructors/
revath
Mar 28, 2018
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.
akshay
Mar 28, 2018
ActiveModel Boolean type inlcudes rules for coersion to handle user input appropriately. We can make use of this when ever we would need to do explicit type casting on user input. https://github.com/rails/rails/blob/47eadb68bfcae1641b019e07e051aa39420685fb/activemodel/lib/active_model/type/boolean.rb
akshay
Mar 23, 2018
active support has an unordered map like structure https://apidock.com/rails/ActiveSupport/OrderedHash, but it is actually called ordered hash (shrug)
mrinmoy
Mar 22, 2018
Multiple ways to read files in golang explained - http://kgrz.io/reading-files-in-go-an-overview.html
manu
Mar 21, 2018
When using docker-compose and when in doubt that containers are getting cached, pass
--build
option. Works like charmYuva
Co-founder
Mar 18, 2018
chrome://net-internals
mrinmoy
Showing 65 to 67 of 77 results
Ready to Build Something Amazing?
Codemancers can bring your vision to life and help you achieve your goals
- Address
2nd Floor, Zee Plaza,
No. 1678, 27th Main Rd,
Sector 2, HSR Layout,
Bengaluru, Karnataka 560102 - Contact
hello@codemancers.com
+91-9731601276