cm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agoAll of IT in one imagelemmy.mlimagemessage-square39fedilinkarrow-up1967arrow-down18cross-posted to: programmerhumor@lemmy.ml
arrow-up1959arrow-down1imageAll of IT in one imagelemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agomessage-square39fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareblackn1ght@feddit.uklinkfedilinkarrow-up12arrow-down3·23 hours agoThis isn’t the languages fault, it’s the developers.
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up2·2 hours agoAlbeit true, I want to note that some languages encourage such practices way more than others do. Also, when you’ve got a hammer everything looks like a string nail.
minus-squareScoopta@programming.devcakelinkfedilinkarrow-up1·3 hours agoI’m assuming by this you mean the developers of JS /s
minus-squarecopd@lemmy.worldlinkfedilinkarrow-up5arrow-down1·13 hours agobesides NaN actually being a number, this could completely and easily be avoided with typescript.
minus-squarerooroo@feddit.orglinkfedilinkarrow-up3·7 hours agoNaaah. Good programmers know how to use as any as any to make this work in typescript as well.
This isn’t the languages fault, it’s the developers.
It’s both.
Albeit true, I want to note that some languages encourage such practices way more than others do. Also, when you’ve got a hammer everything looks like a
stringnail.I’m assuming by this you mean the developers of JS /s
besides NaN actually being a number, this could completely and easily be avoided with typescript.
Naaah. Good programmers know how to use
as any as any
to make this work in typescript as well.