2 ms·
I recently switched from a Go shop to an Elixir one. Exceptions as control flow, arrgh! Compile times, gnashing of teeth. Unmatched patterns with zero context b
by sethammons 5y ago
I recently switched from a Go shop to an Elixir one. Exceptions as control flow, arrgh! Compile times, gnashing of teeth. Unmatched patterns with zero context bubbling up.
Ecto is helpful for what we do, but I asked the team about handling (monitoring, logging what failed for what customer, metrics) db connection errors, and they are fine with exceptions. A connection error is not exceptional - they are expected with an app our size.
The modules seem written to deal with a lot of happy path. I want to know more about failure routes and ensuring we have the information to fix issues.
I'm assuming my frustrations are because there is more for me to learn and understand of the ecosystem.
- georgia_peach 5y agoThe compile times were particularly galling: rust-like compile times to get javascript-tier runtime errors.