Bifalgorithm post · Computer science one · Error Handling
Why must software handle errors in addition to avoiding bugs?
Why must software handle errors in addition to avoiding bugs? (Computer science one · Error Handling) — "Even if code contains no bugs, it is still susceptible…
Ideas in this flowchart
- Error handling and resilient software design
- Bug-free code is still susceptible to errors.
- A program may connect to a remote database to query and process data.
- The network connection may be temporarily unavailable.
- The program then cannot execute properly.
- Error handling means anticipating error conditions and detecting, preventing, or recovering from them.
- Code should be robust and resilient in addition to being bug-free.
- Software engineering practices were pioneered by people such as Margaret Hamilton.
- Margaret Hamilton was the lead Apollo flight software designer at NASA.
- During the Apollo 11 Moon landing, an error caused the lander's computer to become overworked with data.
- The robust architecture detected the situation and prioritized landing tasks over lower-priority tasks.
- The system's built-in resilience is credited with its success.