Minh ReigenBad combo in ActiveRecord: polymorphic relationships, auto-generated numeric IDs and `includes`Navigating the complexities of polymorphic relationships, auto-generated numeric IDs, and the use of “includes” in queries can indeed turn…2 min read·Nov 23, 2023----
Minh ReigenNavigating Workplace Dynamics: Dealing with Perceived Hostility in Co-workers’ ResponsesIn the intricate dance of workplace communication, the feeling of having asked a seemingly “stupid” question in a public setting is a…3 min read·Nov 23, 2023--1--1
Minh ReigenTesting a Rails controller concern (using RSpec)You can test a Rails controller concern in different ways, ordered from my least to most favorite:2 min read·Oct 18, 2023--1--1
Minh ReigenThe Impact of Paternity Leave on My FamilyMy wife and I recently had our second child, and it’s official — we’ve once again joined the illustrious “No Sleep Club.” Yes, that’s…5 min read·Sep 6, 2023----
Minh Reigen“Why did you come to the US at all? Vietnam is such a great country”10 min read·Aug 20, 2023----
Minh ReigenElixir: Ecto.put_assoc V.S. Ecto.Multi.update when updating multiple child recordsToday, let’s compare updating multiple child records using put_assoc vs Ecto.Multi.update.2 min read·Mar 18, 2022----
Minh ReigenElixir: Ecto — find records on empty associationsIn my experience and the apps I worked on, there were a few times I needed to find records based on empty associations.2 min read·Feb 16, 2021----
Minh ReigenElixir: Handy debug chain-able pretty-print functionI picked up Elixir last year at work. While some debugging tools are good to casual debug things in Elixir, IO.puts/2 and IO.inspect/2 are…2 min read·Feb 8, 2021--1--1