minus-squareLupie@sopuli.xyztoProgrammer Humor@programming.dev•What the fuck javascriptlinkfedilinkarrow-up10arrow-down5·16 hours agoNo, it should not be an error. If you’re making a calculator and your user enters 1/0, your program should not have the propensity to crash; the result should simply be NaN and you should choose how you display that result to your user. linkfedilink
minus-squareLupie@sopuli.xyztoLinux@lemmy.ml•Linux desktop use spikes to over 10% in North America for the first time. There is also a corresponding drop in Windows and OSX use.linkfedilinkarrow-up16·4 months agoNo one wants to swap to Windows 11, even a lot of businesses; it’s that bad. linkfedilink
No, it should not be an error. If you’re making a calculator and your user enters 1/0, your program should not have the propensity to crash; the result should simply be NaN and you should choose how you display that result to your user.