cm0002@lemmy.world to Programmer Humor@programming.dev · 3 days agoAll of IT in one imagelemmy.mlimagemessage-square46fedilinkarrow-up11arrow-down10cross-posted to: [email protected]
arrow-up11arrow-down1imageAll of IT in one imagelemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 3 days agomessage-square46fedilinkcross-posted to: [email protected]
minus-squareblackn1ght@feddit.uklinkfedilinkarrow-up0·3 days agoThis isn’t the languages fault, it’s the developers.
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up0·2 days 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.devlinkfedilinkarrow-up0·2 days agoI’m assuming by this you mean the developers of JS /s
minus-squarecopd@lemmy.worldlinkfedilinkarrow-up0·3 days agobesides NaN actually being a number, this could completely and easily be avoided with typescript.
minus-squarerooroo@feddit.orglinkfedilinkarrow-up0·3 days 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.