Bad 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…Nov 23, 2023Nov 23, 2023
Navigating 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…Nov 23, 2023Nov 23, 2023
Testing a Rails controller concern (using RSpec)You can test a Rails controller concern in different ways, ordered from my least to most favorite:Oct 18, 20231Oct 18, 20231
The 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…Sep 6, 2023Sep 6, 2023
Elixir: 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.Mar 18, 2022Mar 18, 2022
Elixir: 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.Feb 16, 2021Feb 16, 2021
Elixir: 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…Feb 8, 20211Feb 8, 20211