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 20, 2018
This is a good read about common Rails errors which rollbar has captured https://rollbar.com/blog/top-10-ruby-on-rails-errors/
Yuva
Co-founder
Apr 16, 2018
http://api.rubyonrails.org/v5.0/classes/ActiveRecord/QueryMethods.html#method-i-left_joins since rails 5
Mrinmoy
Apr 12, 2018
row caching and stream: true option for mysql2 https://github.com/brianmario/mysql2#row-caching
Mrinmoy
Apr 10, 2018
there are command-line options which you can add to bash scripts, can be added in the header like
#!/bin/bash -e
Manu
Apr 10, 2018
set -x
is very useful while writing shell scripts. It echos commands being run (even in for loops) which helps in debugging. Put this at the top of script file, and see the magic!Yuva
Co-founder
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
Showing 69 to 71 of 82 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