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.
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.