3 ms·
I’ve definitely seen way too much code like the examples above. Another side effect to this is it tends to leak all over and can result in exponentially more co
by Zanfa 1y ago
I’ve definitely seen way too much code like the examples above. Another side effect to this is it tends to leak all over and can result in exponentially more code. What would’ve been a 2-line change at the API boundary, becomes ten lines of manual edgecasing every time it’s used in business logic and results in impossible states that need even further typing and handling. And don’t forget the tests that now need to cover invalid inputs everywhere, not just the API boundary.