@[email protected] to Programmer [email protected] • 8 days agoparseInt(5)lemmy.mlimagemessage-square63fedilinkarrow-up1474arrow-down16
arrow-up1468arrow-down1imageparseInt(5)lemmy.ml@[email protected] to Programmer [email protected] • 8 days agomessage-square63fedilink
minus-square@[email protected]linkfedilink21•8 days agoI’ve seen code in my workplace using parseInt to round JS Number. Made me cringe coming from system programing but I didn’t see the danger. It’s sad the only way to prevent such a bad code in production is to use transpilers.
I’ve seen code in my workplace using parseInt to round JS Number. Made me cringe coming from system programing but I didn’t see the danger.
It’s sad the only way to prevent such a bad code in production is to use transpilers.