Lena@gregtech.eu to Programmer Humor@programming.dev · 14 days agoWhat the fuck javascriptgregtech.euimagemessage-square57linkfedilinkarrow-up1414arrow-down111
arrow-up1403arrow-down1imageWhat the fuck javascriptgregtech.euLena@gregtech.eu to Programmer Humor@programming.dev · 14 days agomessage-square57linkfedilink
minus-squaretreadful@lemmy.ziplinkfedilinkEnglisharrow-up9arrow-down2·14 days agoYou talk like error handling isn’t a thing.
minus-squareLupie@sopuli.xyzlinkfedilinkarrow-up1·12 days agoI’m just saying a try-catch feels like a little much for handling mathematically valid user input.
minus-square🌞 Alexander Daychilde 🌞@lemmy.worldlinkfedilinkEnglisharrow-up10·14 days ago if this wasn’t obvious, If this wasn’t obvious, be glad of the chance to learn. If we all stopped as soon as something simple wasn’t obvious, nobody would learn and nobody would do anything. What a terrible reply to someone. It cuts off curiosity and says “You are too stupid to do anything.” Yet I bet there was a time that even with that very specific thing, you didn’t think of it that way.
minus-squarelemonsorrel@lemmy.worldlinkfedilinkarrow-up2arrow-down1·14 days agonewcomers to shitting on javascript sometimes learn to blame the tool
minus-squaretreadful@lemmy.ziplinkfedilinkEnglisharrow-up1arrow-down3·14 days agoNaN is a primitive value, not an Error. >> typeof 1 / "a" "number"
You talk like error handling isn’t a thing.
I’m just saying a try-catch feels like a little much for handling mathematically valid user input.
deleted by creator
If this wasn’t obvious, be glad of the chance to learn.
If we all stopped as soon as something simple wasn’t obvious, nobody would learn and nobody would do anything.
What a terrible reply to someone. It cuts off curiosity and says “You are too stupid to do anything.”
Yet I bet there was a time that even with that very specific thing, you didn’t think of it that way.
newcomers to shitting on javascript sometimes learn to blame the tool
NaNis a primitive value, not anError.>> typeof 1 / "a" "number"