OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 7 days agoparseInt(5)imagemessage-square61linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageparseInt(5)OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 7 days agomessage-square61linkfedilink
minus-squaremiellaby@jlai.lulinkfedilinkarrow-up0·7 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.