3 ms·
Should we do the same for segmentation faults? Silently return zero and let the program continue with whatever broken internal state it ends up with?
by nemetroid 2y ago
Should we do the same for segmentation faults? Silently return zero and let the program continue with whatever broken internal state it ends up with?
- JonChesterfield 2y agoSometimes, yes. One choice is the right and proper self flagellation and sorrow for poor behaviour. The other is to not disable the engines on your warship when a programmer missed an edge case.
- 8organicbits 2y agoI wonder what calculation was being made. Something related to fuel valves? Carelessly proceeding with bad data could destroy machinery, start a fire, and sink the ship. There's no easy, one size fits all answer here.
- DonHopkins 2y agoI hope they disable the guns on your warship when a programmer missed an edge case.
- nemetroid 2y agoDisabling the engines sounds like a pretty good deal compared to what bad software could make a warship do.