Skip to content

Evidence in Software Engineering

Much of what engineers believe about their own practice reaches them as advice, experience reports, conference talks and numbers repeated from one book to the next. Methodologies are adopted and abandoned with little tested evidence either way. These notes ask what evidence a claim about engineering practice should have, how to read the evidence that exists, and what to do when there is none.

The question is older than AI tools and does not depend on them. Claims that coding agents make teams faster are the newest case of it, and most examples in these notes come from that case. The evidence appraisal notes apply the same principles to claims about AI tools.

Principles

  1. Say exactly what is claimed. Name the outcome, population, intervention, comparison and time, and say whether the claim is descriptive, associational, causal or speculative. -> Stating a claim
  2. Argue that the measure measures the thing. A count stands for a concept such as productivity only with an argument that it does, and a count that becomes a target stops measuring. -> Measures and constructs
  3. A causal claim needs a comparison. Name the experiment that would settle the claim, then look for confounders and for patterns that only look like effects. -> Causal claims need a comparison
  4. Fix what counts before looking. Choose the primary outcome, exclusions and analysis before the data is seen. -> Preregistration
  5. Report how big, how sure and how far. An effect estimate with its uncertainty, its practical significance and the population it covers, not a verdict. -> Reporting an estimate, Four kinds of validity
  6. Match the method to the question. Benchmarks, experiments, case studies, longitudinal studies and reviews each answer a different kind of question. -> Choosing a method
  7. Look past the moment of change. Some costs appear months after the change that caused them. -> Longitudinal studies
  8. One study is a finding. Confidence comes from replication and synthesis, and repetition by citation is not replication. -> Replication and synthesis, Claims without evidence
  9. Evidence informs a decision, and the decision is checked. Evidence is combined with expertise and the circumstances of use, and the result is evaluated afterwards. -> Evidence-based software engineering
  10. Question the evidence too. Ask whether the metric fits, whether the study was biased and what was left out, and revise. -> Critical stance

Notes

The problem

  • Claims without evidence – essays on why software methodologies fail to deliver what they promise, and Bossavit’s account of software engineering “facts” that spread by citation alone.

Principles

Practices

  • Choosing a method – which method answers which claim: benchmarks, case studies, mixed methods, longitudinal studies, and why an experience report is not a case study.
  • Running an experiment – the five-stage experiment process, method-specific standards, and preregistration.
  • Evidence-based software engineering – the five steps for using evidence, the skill and lifecycle factors, and how replication and synthesis build confidence.

Applied to AI tools

Open questions

  • What would show that a practice works? For Scrum, TDD, code review or microservices, what outcome would count, compared with what, and for which teams? The skill factor says outcomes depend heavily on the people involved.
  • Which of the “facts” I repeat have a source? Bossavit traces the cone of uncertainty, the 10x programmer and the rising cost of defects back to their citations and finds them weaker than their reputation. Which other claims in these notes need the same check?
  • How long until a practice can be judged? The lifecycle factor says some effects only appear after deployment, such as a change that looks cheap when merged and costs more in maintenance months later.
  • What replaces research when it is missing or does not fit? EBSE’s fourth step combines evidence with expertise and the circumstances of use. Where does the line run between that and opinion, and when is a small local experiment the better source?
  • What can an experience report or a vendor case study show? It can describe what happened. It rarely shows what caused it.
  • Is the measure the right one? A critical empirical stance asks whether the metric fits the question, as well as what the metric says.

Library sources

  • Bossavit 2015, The Leprechauns of Software Engineering – folklore that spreads by citation; on Why you should care about empirical results (ch. 3) and A new model of inquiry (ch. 15)
  • Wohlin et al. 2024, Experimentation in Software Engineering – the standard text on empirical studies and experiments in software engineering, cited across the principles and practices notes
  • Trochim et al. 2016, Research Methods: The Essential Knowledge Base – measurement, causality, validity and inference, cited in the principles notes
  • Felderer and Travassos 2020, Contemporary Empirical Methods in Software Engineering – study strategies, data analysis and evidence synthesis; on The Evolution of Empirical Methods in Software Engineering

Further reading:

  • Mendez et al. 2024, Handbook on Teaching Empirical Software Engineering
  • Wohlin and Runeson 2021, Guiding the selection of research methodology in industry-academia collaboration in software engineering
  • Farley 2022, Modern Software Engineering – software engineering framed as empirical learning and managing complexity

Explore this section

  • A claim that a practice or tool caused an outcome needs a counterfactual: name the experiment that would settle it, then look for the confounders and the patterns that only look like effects.

  • Different claims need different methods: benchmarks for capability under set conditions, experiments for causes, case studies for how and why, longitudinal studies for change, and reviews for the total evidence. Experience reports are none …

  • Essays and practitioner retrospectives question whether software development methodologies improve practice, and Bossavit traces how software engineering 'facts' spread by citation without evidence.

  • Critical empirical practice combines skepticism, practical tests, and reflection. Its vocabulary distinguishes checking a claim from examining whether the measurement and interpretation support it.

  • Where the notes in this section came from: two notes moved from the AI evaluation folder, one restored from git history, and one long note split by topic around ten principles.

  • Evidence-based software engineering connects answerable questions, literature search, critical appraisal, practitioner expertise, and stakeholder values, then evaluates the effects of the chosen practice.

  • Construct, internal, external and conclusion validity name four ways a study can be wrong, and reproducibility adds a fifth question: whether anyone else could repeat it.

  • A metric stands for the concept a claim is about only with an argument that it does. Productivity has several dimensions, and a measure that becomes a target stops measuring.

  • Empirical software engineering already has a method for experiments: a five-stage process, method-specific standards for what a study must report, and preregistration to fix the outcome before the data is seen.

  • A claim about engineering practice names its outcome, population, intervention, comparison and time, and whether it is descriptive, associational, causal or speculative. Empirical claims carry evidence, not proof, and a stated uncertainty.