3 ms·
> I've made plenty of stupid mistakes where the two 'faces' of the abstraction don't marry up, and it's frustrating. Would you mind sharing any of these?
by lexicality 9y ago
> I've made plenty of stupid mistakes where the two 'faces' of the abstraction don't marry up, and it's frustrating.
Would you mind sharing any of these?
- davnicwil 9y agoI'm talking really stupid, small, frustrating things, mostly at the interfaces. I read a return x at the bottom of one function and call the function elsewhere and try to use x, but oh wait no.. it was an async function so I've really got Promise<x>. Generally it's just because of the leaky abstraction making very fast mental mapping of code a bit harder.
- hdhzy 9y agoAnother common mistake is accidentally not awaiting a function that returns a promise. That makes some really hard debugging (race conditions) as this issue is not caught even by TypeScript.