I still consider myself a beginner in Elixir land, but it’s quickly becoming my favorite coding language.
I was trying to solve a data aggregation problem whilst generating a CSV file for a shipping partner, and I was having an incredibly frustrating time. I spent more than an hour banging my head into a wall just trying to get a data structure to conform to the customer’s needs.
I took a walk and reminded myself of my principle in the title: If I’m fighting Elixir, I’m probably using the wrong approach.
What turned out to be an hours-long frustration was solved in 4 minutes with a comprehension. Simple, daresay elegant, and, most importantly, obvious in hindsight.
What do you think? Am I completely off base? Or does this seem to match your experience?