banner
tcks.bsky.social
@tcks.bsky.social
Mostly the performance cost of thrown exception is under my resolution. If this kind of performance is important, I don't use Ruby at all.
April 30, 2025 at 10:03 AM
When we quantify "expensivnes", its much cheaper than datbase query or http request. Imho the more important aspect is ensuring security, correctness amd DX. It's much better to throw runtime exception, than have security hole because someone somewhere forgot to check flag in return value.
April 30, 2025 at 10:00 AM
I don't think the Ruby is the right ecosystem where to enforce this paradigm. Why not use elixir (or something similar), if you want this kimd of rules?
April 30, 2025 at 9:36 AM
What about ActiveRecord::RecordNotFound ?
April 30, 2025 at 6:03 AM
Some of people I like followed moved here. Their thoughts are worth an extra icon on the screen.
November 20, 2024 at 6:59 AM