Lena@gregtech.eu to Programmer Humor@programming.dev · 2 days agoWhat the fuck javascriptgregtech.euimagemessage-square56fedilinkarrow-up1389arrow-down111
arrow-up1378arrow-down1imageWhat the fuck javascriptgregtech.euLena@gregtech.eu to Programmer Humor@programming.dev · 2 days agomessage-square56fedilink
minus-squaretreadful@lemmy.ziplinkfedilinkEnglisharrow-up8arrow-down2·2 days agoYou talk like error handling isn’t a thing.
minus-squareanewfox@lemmy.ziplinkfedilinkarrow-up10arrow-down10·edit-22 days agofun fact: getting NaN from a numeric calculation is the error that you handle. if this wasn’t obvious, please don’t write code for anyone but yourself. hope this helps.
minus-square🌞 Alexander Daychilde 🌞@lemmy.worldlinkfedilinkEnglisharrow-up8·1 day 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·2 days agonewcomers to shitting on javascript sometimes learn to blame the tool
minus-squaretreadful@lemmy.ziplinkfedilinkEnglisharrow-up1arrow-down3·1 day agoNaN is a primitive value, not an Error. >> typeof 1 / "a" "number"
You talk like error handling isn’t a thing.
fun fact: getting NaN from a numeric calculation is the error that you handle. if this wasn’t obvious, please don’t write code for anyone but yourself. hope this helps.
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"