Bifalgorithm post · Computer science one · Error Handling
What are software bugs and why can they cause serious failures?
What are software bugs and why can they cause serious failures? (Computer science one · Error Handling) — "Writing perfect code is difficult. The more complex…
Ideas in this flowchart
- Software bugs make perfect code difficult and can cause serious failures.
- As systems and code bases become more complex, the likelihood of bugs increases.
- A bug is a flaw or mistake in a program that causes incorrect behavior or unintended consequences.
- The term “bug” has a long engineering history.
- The term was used in engineering before becoming associated with computer systems.
- Grace Hopper popularized the term after tracing a 1946 Naval Mark II malfunction to a moth trapped in a relay.
- Modern engineering failures demonstrate the potentially severe effects of software bugs.
- In 1983, a Soviet early warning system falsely indicated that the United States had launched nuclear missiles.
- Stanislav Petrov distrusted the new system and did not report the alert to his superiors.
- The false alarm resulted from sunlight reflections off high-altitude clouds and other system bugs.
- In 1999, the Mars Climate Orbiter was lost after entering the Martian atmosphere.
- A subsystem used pound force per second instead of the standard newton second unit expected by the other systems.
- The Mars Climate Orbiter loss cost more than 125 million dollars.
- Other bugs have caused user inconvenience, medical-device deaths, and losses of millions of dollars.
- Software engineering differs from physical engineering because software is highly sensitive to very small errors.
- Forgetting one character or changing one number in a program can cause complete system failure.