siriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 7 months agothe hardest exam questionlemmy.mlimagemessage-square130fedilinkarrow-up1731arrow-down122
arrow-up1709arrow-down1imagethe hardest exam questionlemmy.mlsiriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 7 months agomessage-square130fedilink
minus-squarekamen@lemmy.worldlinkfedilinkarrow-up5·7 months agoWeren’t you getting runtime errors for the function not being found?
minus-squareshastaxc@lemm.eelinkfedilinkarrow-up2arrow-down1·edit-27 months agoFalsy* because it was undefined However, their IDE should have highlighted it as an unknown property. Guess this guy is coding in notepad or vi.
minus-squareshastaxc@lemm.eelinkfedilinkarrow-up2·7 months agoYeah that’s exactly what I think happened to him. He needs a better IDE and/or needs to stop copy/pasting code from stackoverflow or documentation that doesn’t match his library version.
minus-squareByteJunk@lemmy.worldlinkfedilinkarrow-up1arrow-down1·7 months agoMy dude, you need to understand that all that anger and resentment, it is not you. It’s the years of JavaScript poisoning your mind. In any case, that goes to my point. I would have to be saved by my IDE, when any sane language will blow up in your face as soon as you try to run it.
minus-squareowsei@programming.devlinkfedilinkarrow-up2·7 months agoI don’t know how luxon works, but isWeekend could be a property instead of a function
minus-squareByteJunk@lemmy.worldlinkfedilinkarrow-up2·7 months agoIt is. It also happens to be undefined, and checking that for truth is how I was bitten.
Weren’t you getting runtime errors for the function not being found?
Removed by mod
Falsy* because it was undefined
However, their IDE should have highlighted it as an unknown property. Guess this guy is coding in notepad or vi.
Removed by mod
Yeah that’s exactly what I think happened to him. He needs a better IDE and/or needs to stop copy/pasting code from stackoverflow or documentation that doesn’t match his library version.
My dude, you need to understand that all that anger and resentment, it is not you. It’s the years of JavaScript poisoning your mind.
In any case, that goes to my point. I would have to be saved by my IDE, when any sane language will blow up in your face as soon as you try to run it.
I don’t know how luxon works, but isWeekend could be a property instead of a function
It is. It also happens to be undefined, and checking that for truth is how I was bitten.