3.2 Impact of Program Design
1. Exam Points
Maximize system reliability: testing the program with a variety of conditions.
Intellectual property concerns: publish your code as open source to allow others to use your code.
Code not open source: get permission or buy it.
Programs can have unintended harmful effects beyond their intended use.
2. Knowledge Points
(1) System Reliability
System reliability refers to the program being able to run without failure in all cases.
Programmers should make an effort to maximize system reliability by testing the program with a variety of conditions.
- Example: test a/b with all possible conditions, including when b is 0.
(2) Impacts of Programs
- The creation of
programs has impacts on society, the economy, and culture. These impacts can be both beneficial and harmful.
- Programs meant to fill a need or solve a problem can have
unintended harmful effects beyond their intended use.
- Example: AI programs, Tiktok, etc.
Legal issues and intellectual property(知识产权) concerns arise when creating programs.
Programmers often reuse code written by others and published as open source and free to use.
If you want others to use your code, publish it as open source.
- Incorporation of code that is
not published as open source requires the programmer to obtain permission and often purchase the code before integrating it into their program.
3. Exercises