Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Programming

Ask Slashdot: What's the Harm In a Default Setting For Div By Zero? 1067

New submitter CodeInspired writes: After 20 years of programming, I've decided I'm tired of checking for div by zero. Would there be any serious harm in allowing a system wide setting that said div by zero simply equals zero? Maybe it exists already, not sure. But I run into it all the time in every language I've worked with. Does anyone want their div by zero errors to result in anything other than zero?

Submission + - Death in the Browser Tab

theodp writes: "There you are watching another death on video," writes the NY Times' Teju Cole. "In the course of ordinary life — at lunch or in bed, in a car or in the park — you are suddenly plunged into someone else’s crisis, someone else’s horror. It arrives, absurdly, in the midst of banal things. That is how, late one afternoon in April, I watched Walter Scott die. The footage of his death, taken by a passer-by, had just been published online on the front page of The New York Times. I watched it, sitting at my desk in Brooklyn, and was stunned by it." Cole continues, "For most of human history, to see someone die, you had to be there. Depictions of death, if there were any, came later, at a certain remove of time and space." Disturbing as they may be (Cole notes he couldn't bear to watch the ISIS beheading videos), such images may ultimately change things for the better. Better to publish them than sweep them under the carpet?

Slashdot Top Deals

"It's the best thing since professional golfers on 'ludes." -- Rick Obidiah

Working...