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
Emil
you can use GCP cloud shell and use it to run kubectl commands instead of having to create a k8s context on your local kubectl CLI tool. This is very useful for doing some adhoc debugging on a k8s cluster you have access to. Just login to google cloud using google auth, and then click on "Connect" next to the cluster you want to connect to, then use cloud shell.
Published
Author
user-image
Akshay
We can leverage structs in ruby to encapsulate and hold internal class data into a struct object. Since struct saves us from writing attr_accessor methods or initializer method, we can easily leverage it when in need of a temporary data structure and need to have the data grouped.
Published
Author
user-image
Kamal
If you are using materialize, you need to initialize the select element with material_select(). Otherwise the select box will not get rendered.
Published
Author
user-image
Akshay
Elixir and Erlang has a limit on the number of atoms that can be created. We can view the atom limit using :erlang.system_info(:atom_limit). Atom's text value is stored in the atom table and this is not garbage collected. This explains why user inputs to phoenix routes are to be matched with strings rather than atoms.
Published
Author
user-image
Kamal
rubocop -a can autocorrect many kinds of issues.
Published
Author
user-image
Mrinmoy
ActiveRecord update_all does not touch updated_at
Published
Author
user-image
Kamal
byebug

Showing 67 to 69 of 82 results

Ready to Build Something Amazing?

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