8 Software Issues

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.

Software Issues: notes

Definitions

Precision matters here, because the terms are used loosely in ordinary speech and precisely in examinations.

  • A fault, also called a defect or informally a bug, is a flaw in the software: a mistake in the requirement, design or code that has been written into the product.
  • An error is the incorrect internal state that arises when a fault is executed, for example a variable holding a wrong value.
  • A failure is the observable event in which the software does not deliver the required service: the point at which the incorrect internal state becomes visible to a user or another system. A fault produces a failure only when the faulty path is executed with data that expose it, which is why serious faults can sit undetected for years.
  • Software failure more broadly is the inability of a software system to perform its required functions within specified performance requirements. A project failure is different again: a project can be cancelled, overrun or abandoned without any code failing, and most large project failures are of this kind.
  • Software quality is the degree to which software meets its specified requirements and the reasonable expectations of its users, covering functionality, reliability, usability, efficiency, maintainability, portability and security.
  • Software reliability is the probability that the software operates without failure for a specified period under specified conditions.
  • Software safety is the property that the software will not cause or contribute to harm to people, property or the environment.
  • Software security is the property that the software resists deliberate attack and unauthorised use.
  • Risk is the possibility of an undesirable outcome, characterised by the probability that it occurs and the loss suffered if it does.
  • Verification asks whether the product was built correctly against its specification; validation asks whether the correct product was built for the user's actual need.

Safety and security are frequently confused and are worth separating carefully, since a question asking for the comparison is common.

SafetySecurity
ConcernThe system harming the worldThe world harming the system
Threat originAccidental faults, design errors, environmental conditionsDeliberate attackers, malicious insiders
Nature of threatUnintentionalIntentional and adaptive
GoalPrevent harm to people, property, environmentPreserve confidentiality, integrity and availability
Typical techniqueHazard analysis, redundancy, fail safe design, formal methodsAccess control, encryption, authentication, penetration testing
ExampleA medical infusion pump that must never overdose a patientA banking system that must never permit an unauthorised transfer

The two interact. A security breach can create a safety hazard when an attacker manipulates a physical control system, and a safety mechanism can be undermined if it is not itself protected against tampering.

Causes of Software Failures

Failures are almost never traceable to a single cause. They are produced by chains of technical, managerial and human factors running through the whole development life cycle.

Requirements causes

  • Incomplete, ambiguous or contradictory requirements, so the wrong product is built correctly.
  • Poor communication between the customer and the development team, so a shared assumption is never checked.
  • Requirements that change continuously without change control, which destabilises design and testing.
  • Unstated non-functional requirements such as expected load, response time, availability and security, which are the ones that fail first in production.

Design causes

  • Architecture unsuited to the actual load or usage pattern.
  • Poor modularity, which spreads the effect of a later change across the system.
  • Wrong choice of algorithm or data structure for the data volumes involved.
  • Security and error handling treated as additions rather than as design concerns.

Implementation causes

  • Logic errors, boundary and off-by-one errors, incorrect handling of null and empty values, arithmetic overflow, and resource leaks.
  • Unhandled exceptional conditions, so the program behaves unpredictably when something goes wrong rather than failing cleanly.
  • Poor coding practice, absent standards, and code that nobody can read six months later.

Testing causes

  • Insufficient coverage, so whole paths are never exercised.
  • Testing only with well behaved data, missing boundary and invalid input cases.
  • No integration or system testing, so components correct in isolation fail in combination.
  • Test environments that do not resemble production in data volume, configuration or load.
  • No regression testing, so a fix reintroduces an old fault.

Management and process causes

  • Unrealistic schedules and budgets, which cause review, testing and documentation to be cut first, which is precisely the wrong order.
  • Poor estimation and planning.
  • Inadequate configuration and version control.
  • Missing or outdated documentation, which makes maintenance error prone.
  • Scope creep without corresponding adjustment of time and resources.
  • Ineffective communication among developers, testers, managers and stakeholders.

Human and organisational causes

  • Shortage of skilled and experienced staff, and loss of key people mid project.
  • Complacency, skipped reviews and ignored warnings.
  • Organisational cultures in which raising a problem is punished, so problems are not raised.

Environmental and operational causes

  • Hardware, operating system or platform changes that the software was never updated for.
  • Faulty or unexpected input from sensors and external systems.
  • Dependence on third party libraries and services whose defects, changes or outages are outside the team's control.
  • Security vulnerabilities exploited after release.
  • Users operating the system in ways the designers never anticipated, and inadequate training.

Two further points are worth carrying into an answer. Complexity is a cause in its own right: as the number of interacting components grows, the number of possible states grows far faster, and beyond a certain size no team can hold the whole system in mind. And maintenance is where a large share of faults are introduced, because changes are made under time pressure, by people who did not write the original code, to systems whose documentation has decayed.

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 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:

PrincipleWhat It Reflects
PublicSoftware engineers shall act consistently with the public interest
Client and EmployerAct in the best interest of client and employer, consistent with public interest
ProductEnsure products meet the highest professional standards
JudgmentMaintain integrity and independence in professional judgment
ManagementManagers shall promote ethical approaches
ProfessionAdvance the integrity and reputation of the profession
ColleaguesBe fair and supportive of colleagues
SelfParticipate 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

  1. Poor Requirements Analysis

    • Incomplete, ambiguous, or misunderstood requirements lead to building the wrong product.
  2. Design Flaws

    • Inadequate architectural design, poor module decomposition, or ignoring non-functional requirements.
  3. Coding Errors (Bugs)

    • Logic errors, off-by-one errors, null pointer exceptions, memory leaks, etc.
  4. Inadequate Testing

    • Insufficient test coverage, missing edge cases, no regression testing.
  5. Integration Problems

    • Incompatibility between modules or third-party components.
  6. Complexity

    • Overly complex systems are harder to understand, maintain, and test.

B. Managerial/Process Causes

  1. Poor Project Management

    • Unrealistic schedules, poor resource allocation, lack of planning.
  2. Lack of Documentation

    • Makes maintenance and debugging extremely difficult.
  3. Changing Requirements (Scope Creep)

    • Frequent changes without proper change management destabilize the system.
  4. Inadequate Communication

    • Miscommunication between developers, clients, and stakeholders.

C. Human Causes

  1. Lack of Skilled Personnel

    • Inexperienced developers making poor design and coding decisions.
  2. Negligence and Complacency

    • Skipping reviews, ignoring warnings, or rushing through phases.

D. Environmental Causes

  1. Hardware/Platform Changes

    • Software not updated to match new hardware or OS environments.
  2. 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

AspectKey Points
Code of EthicsReflects honesty, accountability, public safety, integrity, and professional responsibility
Causes of Software FailurePoor requirements, design flaws, coding errors, poor management, scope creep, lack of testing
Risk Justifying FactorsComplexity, changing technology, human error, budget constraints, third-party dependencies, security threats
Open this answer on its own page →

2076 · 5 marks

What are the causes of software failure? [5]

Software failure refers to the inability of a software system to perform its required functions within specified performance requirements. The major causes of software failure are: --- - Incomplete, ambiguous, or misunderstood requirements lead to building the wrong product - Lack of proper commu...

Open this answer on its own page →

Risk

2079 · 5 marks

Compare security with safety. Why is software safety so difficult to attain? Can it be guaranteed? [5]

Aspect Safety Security --------- Definition Ensures the system does not cause harm to people or the environment Ensures the system is protected from unauthorized access, attacks, and misuse Focus Accidental failures and unintended behavior Intentional, malicious threats and attacks Threat Source ...

Open this answer on its own page →

2078 · 5 marks

What is risk assessment and management? Explain. [5]

Show solved 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:

  1. Risk Identification

    • Identify all possible risks that may affect the project
    • Categories include: project risks, technical risks, business risks, and known/unknown risks
  2. Risk Analysis

    • Determine the probability (likelihood) of each risk occurring
    • Determine the impact (consequence) if the risk occurs
    • Risk Exposure = Probability × Impact
  3. 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:

  1. Risk Mitigation

    • Take steps to reduce the probability of a risk occurring
    • Example: Conducting code reviews to reduce defect risk
  2. Risk Avoidance

    • Change the project plan to eliminate the risk entirely
    • Example: Using proven technology instead of experimental tools
  3. Risk Transfer

    • Shift the risk to a third party
    • Example: Outsourcing a risky component or purchasing insurance
  4. Risk Acceptance

    • Accept the risk and prepare a contingency plan if it occurs
    • Example: Accepting schedule slippage risk with a backup plan
  5. Risk Monitoring

    • Continuously track identified risks throughout the project lifecycle
    • Watch for new risks as the project evolves

Summary Table

AspectDescription
Risk AssessmentIdentifying and evaluating risks (What can go wrong?)
Risk ManagementPlanning and controlling responses (What do we do about it?)
GoalMinimize 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.

Open this answer on its own page →

2076 · 5 marks

What is software risk? How do you assess and manage software risk? [5]

Software risk is the possibility of suffering loss or negative consequences due to uncertain events or conditions during software development or operation. It involves two key components: - Probability - the likelihood that the risk will occur - Impact - the consequence or loss if the risk does o...

Open this answer on its own page →

Consumer Protection

2078 · 5 marks

What is a service level agreement (SLA)? Why it is important? [5]

A Service Level Agreement (SLA) is a formal, written contract or agreement between a service provider and a client (customer) that defines the expected level of service, responsibilities, and standards that the provider agrees to meet. It specifies measurable metrics such as uptime, response time...

Open this answer on its own page →

Producer Protection

2076 · 5 marks

Has the internet made software protection easier or more difficulty? Why or Why not? [5]

The Internet has made software protection significantly more difficult overall, although it has also introduced some tools that help with protection. Below is a balanced analysis: --- - Software can be copied and distributed globally within seconds over the internet. - Pirated software, crack fil...

Open this answer on its own page →