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
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
Published
Author
user-image
Yuva
Co-founder
If one wants to run iex without starting any applications iex -S mix run --no-start is very handy
Published
Author
user-image
Kamal
For models A and B, if A has_one B, then A.new.b.build wont work. You have to say A.new.build_b.
Published
Author
user-image
Akshay
Sidekiq processes jobs in a multithreaded process. Which means there is no guarantee that the jobs that are enqueued will processed in the same order. So you'd need to consider the aspect of context switch that can happen and thus make sure that the worker code is thread safe.

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