2079 3

CSC334 ยท 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.

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]

Society and Ethics in Information TechnologyChapter 8: Software IssuesCauses of Software Failures

Quick answer

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.

Code of Ethics, Software Failure, and Risk Justification in Software Engineering

1. What Does the Code of Ethics Reflect?

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

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.