4 ms·
"your Redux reducer doesn't handle all of the possible action types so it will crash at run time" And what are all these dr. Strange multiverse possibilities y
by crate_barre 5y ago
"your Redux reducer doesn't handle all of the possible action types so it will crash at run time"
And what are all these dr. Strange multiverse possibilities you speak of? Any semi seasoned JS dev has spidey sense for watching out for null and undefined, and generally you should know the type of what you are returning. Is there that much variability in what you are dealing with? If it’s an array of objects, that’s not hard to hold in your brain, just watch out for empty arrays or null/undefined items.
- triyambakam 5y ago> Is there that much variability in what you are dealing with? Yes. I don't mean any disrespect but again it sounds like you really haven't tried Typescript. Spidey sense can, often and will fail.
- _carbyau_ 5y agoI am not a web dev at all but having something for automatic verification (even if limited) sounds more reliable than the variability of any given dev's "spidey sense".
- deleted 5y ago[deleted]
- spartanatreyu 5y ago> Any semi seasoned JS dev has spidey sense for watching out for null and undefined That comment reeks of the same biases that C/C++ developers make when they admit that a majority of C/C++ bugs are related to hard-to-detect pointer/memory safety issues, but claim that they're a good C/C++ developer because their own code doesn't have such bugs, despite the bugs by their very nature being hard-to-detect.
- deleted 5y ago[deleted]