160k views
5 votes
The software writers for the Ariane 4 used the code from Ariane 4 for the Ariane 5. Because we usually assume API code is correct, the Ariane 5 software writers thought the Ariane 4 routine would work correctly when it was used on the Ariane 5. What should the Ariane 5 software writers have done differently? What should the Ariane 4 software writers have done differently? Give a set of rules that you think everyone (including you) should follow when writing code and when deciding whether to use code that was previously written in order to prevent something like the Ariane 5 crash happening again.

User Whyleee
by
8.3k points

1 Answer

3 votes

Final answer:

The Ariane 5 software writers should have tested the code thoroughly and not assumed its correctness.

Step-by-step explanation:

The Ariane 5 software writers should have conducted proper testing and verification of the Ariane 4 routine before using it on the Ariane 5. They should not have assumed that the code would work correctly without thorough testing. It is important to test code extensively to identify any potential errors or issues that may arise when using code from a previous version.

The Ariane 4 software writers should have documented any known limitations or issues with the code. This would have provided valuable information for the Ariane 5 software writers and helped to prevent the crash. Proper documentation is critical for understanding the behavior and usage of software code.

When writing code, it is important to follow a set of best practices:

Perform thorough testing and verification to ensure the code functions as expected.

Document any known limitations, issues, or assumptions about the code.

Regularly review and update code to address any bugs, security vulnerabilities, or performance issues.

Use version control to keep track of changes and facilitate collaboration with other developers.

Follow coding conventions and style guidelines to improve code readability and maintainability.

User Deepak Kumar
by
8.0k points