News for hackers. Stuff that matters.
Re:Deno Is Webby by crate_barre on Wednesday March 16, 2022 @06:26PM (#30704914)
"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.

Re:Deno Is Webby by triyambakam on Wednesday March 16, 2022 @06:54PM (#30705199)
> 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.

Re:Deno Is Webby by spartanatreyu on Wednesday March 16, 2022 @08:52PM (#30706184)
> 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.

Re:Deno Is Webby by _carbyau_ on Wednesday March 16, 2022 @08:04PM (#30705827)
I 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".