Society and Ethics in Information Technology · Unit 8 · 5 hrs
Software Issues
Exam-focused notes for Software Issues (Society and Ethics in Information Technology, CSC334): what the TU syllabus asks and how it has actually been tested, with 7 solved past questions from this unit.
Software Issues in short
Software fails, and when it fails people lose money, time, privacy and occasionally their lives. This chapter fixes the vocabulary of software failure, examines why failures happen, explains how risk is assessed and managed, sets out what protects the consumer who buys software and what protects the producer who sells it, and describes the practices that actually improve software quality.
What this unit covers
- Definitions
- Causes of Software Failures
- Risk
- Consumer Protection
- Improving Software Quality
- Producer Protection
Causes of Software Failures
2079 · 10 marks
What does the code of ethics reflect? What are the causes of software failure? Explain the factors that justify the risks in software issues.[10]
Show solved answerHide answer
Code of Ethics, Software Failure, and Risk Justification in Software Engineering
1. What Does the Code of Ethics Reflect?
The Code of Ethics in software engineering reflects the professional responsibilities and moral obligations of software engineers toward their clients, employers, the public, and the profession itself.
The ACM/IEEE Software Engineering Code of Ethics is built around 8 principles. It reflects the following:
| Principle | What It Reflects |
|---|---|
| Public | Software engineers shall act consistently with the public interest |
| Client and Employer | Act in the best interest of client and employer, consistent with public interest |
| Product | Ensure products meet the highest professional standards |
| Judgment | Maintain integrity and independence in professional judgment |
| Management | Managers shall promote ethical approaches |
| Profession | Advance the integrity and reputation of the profession |
| Colleagues | Be fair and supportive of colleagues |
| Self | Participate in lifelong learning and promote ethical practice |
In Summary, the Code of Ethics Reflects:
- Honesty and integrity in professional work
- Accountability for the software products developed
- Respect for privacy, confidentiality, and intellectual property
- Commitment to quality and public safety
- Fairness in professional relationships
- Responsibility to society and the environment
2. Causes of Software Failure
Software failure refers to the inability of a software system to perform its required functions within specified performance requirements. The major causes include:
A. Technical Causes
-
Poor Requirements Analysis
- Incomplete, ambiguous, or misunderstood requirements lead to building the wrong product.
-
Design Flaws
- Inadequate architectural design, poor module decomposition, or ignoring non-functional requirements.
-
Coding Errors (Bugs)
- Logic errors, off-by-one errors, null pointer exceptions, memory leaks, etc.
-
Inadequate Testing
- Insufficient test coverage, missing edge cases, no regression testing.
-
Integration Problems
- Incompatibility between modules or third-party components.
-
Complexity
- Overly complex systems are harder to understand, maintain, and test.
B. Managerial/Process Causes
-
Poor Project Management
- Unrealistic schedules, poor resource allocation, lack of planning.
-
Lack of Documentation
- Makes maintenance and debugging extremely difficult.
-
Changing Requirements (Scope Creep)
- Frequent changes without proper change management destabilize the system.
-
Inadequate Communication
- Miscommunication between developers, clients, and stakeholders.
C. Human Causes
-
Lack of Skilled Personnel
- Inexperienced developers making poor design and coding decisions.
-
Negligence and Complacency
- Skipping reviews, ignoring warnings, or rushing through phases.
D. Environmental Causes
-
Hardware/Platform Changes
- Software not updated to match new hardware or OS environments.
-
Security Vulnerabilities
- Failure to address security threats leads to exploitation and failure.
3. Factors That Justify the Risks in Software Issues
Risk in software engineering refers to the probability of an undesirable outcome and its potential impact. Certain factors justify (i.e., explain or validate the existence of) risks in software projects.
Factor 1: Complexity of Software Systems
- Modern software systems are extremely complex with millions of lines of code.
- High complexity inherently increases the probability of defects and failures.
- Justification: It is practically impossible to test all execution paths; some risk is unavoidable.
Factor 2: Changing Technology
- Rapid changes in hardware, operating systems, and platforms introduce compatibility risks.
- New technologies may not be fully understood or tested.
- Justification: Adopting new technology always carries uncertainty.
Factor 3: Evolving Requirements
- User needs and business environments change over time.
- Requirements that change mid-project introduce instability.
- Justification: Dynamic environments make it impossible to freeze requirements completely.
Factor 4: Human Factors
- Software is built by humans who make mistakes.
- Communication gaps between team members and stakeholders introduce risk.
- Justification: Human error is an inherent part of any engineering process.
Factor 5: Time and Budget Constraints
- Tight deadlines force teams to cut corners in testing and review.
- Insufficient budget leads to under-staffing and poor tooling.
- Justification: Resource limitations make it impossible to achieve zero-risk development.
Factor 6: Dependency on Third-Party Components
- Use of external libraries, APIs, and frameworks introduces risks outside the team's control.
- Justification: Third-party failures or vulnerabilities directly impact the product.
Factor 7: Inadequate Risk Management Processes
- Organizations that do not formally identify, analyze, and mitigate risks are more exposed.
- Justification: Without a risk management plan, risks go undetected until they cause failure.
Factor 8: Security Threats
- Increasing cyber threats mean software is always at risk of being compromised.
- Justification: The threat landscape evolves faster than most software can be patched.
Summary Table
| Aspect | Key Points |
|---|---|
| Code of Ethics | Reflects honesty, accountability, public safety, integrity, and professional responsibility |
| Causes of Software Failure | Poor requirements, design flaws, coding errors, poor management, scope creep, lack of testing |
| Risk Justifying Factors | Complexity, changing technology, human error, budget constraints, third-party dependencies, security threats |
Risk
2079 · 5 marks
Compare security with safety. Why is software safety so difficult to attain? Can it be guaranteed? [5]
2078 · 5 marks
What is risk assessment and management? Explain. [5]
Show solved answerHide answer
Risk Assessment and Management
Risk Assessment
Risk assessment is the process of identifying, analyzing, and evaluating potential risks that could negatively affect a software project. It involves determining the likelihood of a risk occurring and the potential impact it would have on the project in terms of cost, schedule, and quality.
Steps in Risk Assessment:
-
Risk Identification
- Identify all possible risks that may affect the project
- Categories include: project risks, technical risks, business risks, and known/unknown risks
-
Risk Analysis
- Determine the probability (likelihood) of each risk occurring
- Determine the impact (consequence) if the risk occurs
- Risk Exposure = Probability × Impact
-
Risk Prioritization
- Rank risks based on their risk exposure value
- Focus attention on high-probability, high-impact risks first
Risk Management
Risk management is the systematic process of planning, monitoring, and controlling actions to minimize the negative effects of risks on a project. It is a proactive approach to dealing with uncertainties.
Steps in Risk Management:
-
Risk Mitigation
- Take steps to reduce the probability of a risk occurring
- Example: Conducting code reviews to reduce defect risk
-
Risk Avoidance
- Change the project plan to eliminate the risk entirely
- Example: Using proven technology instead of experimental tools
-
Risk Transfer
- Shift the risk to a third party
- Example: Outsourcing a risky component or purchasing insurance
-
Risk Acceptance
- Accept the risk and prepare a contingency plan if it occurs
- Example: Accepting schedule slippage risk with a backup plan
-
Risk Monitoring
- Continuously track identified risks throughout the project lifecycle
- Watch for new risks as the project evolves
Summary Table
| Aspect | Description |
|---|---|
| Risk Assessment | Identifying and evaluating risks (What can go wrong?) |
| Risk Management | Planning and controlling responses (What do we do about it?) |
| Goal | Minimize negative impact on project cost, schedule, and quality |
In short: Risk assessment tells us what risks exist and how serious they are, while risk management tells us how to handle them effectively.
2076 · 5 marks
What is software risk? How do you assess and manage software risk? [5]
Consumer Protection
2078 · 5 marks
What is a service level agreement (SLA)? Why it is important? [5]
Producer Protection
2076 · 5 marks
Has the internet made software protection easier or more difficulty? Why or Why not? [5]
Make Unit 8 stick
Practice CSC334 with flashcards & quizzes