News for hackers. Stuff that matters.
Re:Why don't schools teach debugging? (2014) by the-dude on Tuesday April 25, 2017 @07:07AM (#14192395)
Circle has no volume
Re:Why don't schools teach debugging? (2014) by noxToken on Tuesday April 25, 2017 @09:36AM (#14193348)
Although I laughed, I'm sure GP meant sphere. That is the correct formula for volume of a sphere, and a sphere is a circle in 3-space.
Re:Why don't schools teach debugging? (2014) by majewsky on Thursday April 27, 2017 @08:07AM (#14210824)
Aw snap. Yeah, of course I meant a sphere.

(And technically, it's the other way around. A circle is the 2-dimensional special case of a (hyper)sphere.)

Re:Why don't schools teach debugging? (2014) by the-dude on Tuesday April 25, 2017 @10:00AM (#14193545)
Sure. But getting the spec right is more important than being smug about a silly mistake only novices make. And C has much more interesting caveats than this one.