Pular para o conteúdo

#241 - Your Code as a Crime Scene: The Psychology Behind Software Quality - Adam Tornhill

1 de dezembro de 2025 · 1 h 2 min

Notas do episódio

(04:00) Brought to you by Unleash

Unleash is a private, flexible, and scalable feature flag system that lets teams decouple deployments from releases. It reduces the risk of shipping new features and gives organizations real-time control over what reaches production. And as AI accelerates development, Unleash helps engineering teams move fast and stay stable with safe rollouts and instant kill switches. Start a free trial of Unleash at ⁠getunleash.io/pricing⁠.


Why do so many software projects still fail despite modern tools? The answer often lies in the psychology of the team, not the technology stack.

Software development is often viewed purely as a technical challenge, yet many projects fail due to human factors and cognitive bottlenecks. In this episode, Adam Tornhill, CTO and Founder of CodeScene, shares his unique journey combining software engineering with psychology to solve these persistent industry problems. He explains the concept of “Your Code as a Crime Scene,” a method for using behavioral analysis to identify high-risk areas in a codebase that static analysis tools often miss.

Adam covers the tangible business impact of code health, specifically how it drives predictability and development speed. He explains why 1-2% of our codebase accounts for up to 70% of our development work, and how focusing on these hotspots can make our team 2x faster and 10x more predictable. Adam also provides a critical reality check on the rise of AI in coding, exploring whether it will help reduce technical debt or accelerate it, and offers strategies for maintaining quality in an AI-assisted future.

Key topics discussed:

  • Combining psychology and software engineering
  • Why predictability matters more than speed
  • Treating your codebase as a crime scene
  • Behavioral analysis vs. static analysis
  • The hidden danger of the “Bus Factor”
  • Will AI help or hurt code quality?
  • Why healthy code helps both humans and AI
  • Essential guardrails for AI-generated code

Timestamps:

  • (00:00) Trailer & Intro
  • (02:36) Career Turning Point: From Developer to Psychologist
  • (07:43) Why Engineering Leaders Need Psychology Knowledge
  • (09:29) The Root Cause of Failing Software Projects
  • (11:37) Why Code Abstractness Makes Quality Hard to Measure
  • (12:58) Aligning Code Quality with Business Outcomes
  • (14:15) Code Health: 2x Speed, 10x Predictability
  • (17:06) Why Predictability is Undervalued in Software
  • (19:53) TDD and Practices That Drive Code Quality
  • (21:57) Benchmarking Code Health Across the Industry
  • (24:06) Introducing “Your Code as a Crime Scene”
  • (26:30) Behavioral Code Analysis: Hotspot Analysis vs Static Code Analysis
  • (29:40) Behavioral Code Analysis: Understanding Change Coupling
  • (31:33) Dealing with God Classes
  • (33:14) Behavioral Code Analysis: The Social Side of Code
  • (36:48) Why Developers Aren’t Interchangeable
  • (39:14) Introduction to CodeScene
  • (42:06) Will AI Help or Hurt Code Quality?
  • (43:06) Essential Guardrails for AI-Generated Code
  • (45:54) Using CodeScene to Maintain Quality in the AI Era
  • (48:32) How AI Accelerates Technical Debt at Scale
  • (50:42) Why AI-Friendly Code is Human-Friendly Code
  • (54:31) The Reality Check: Future of Software Development with AI
  • (58:27) 3 Tech Lead Wisdom

_____

Adam Tornhill’s Bio
Adam Tornhill is the founder and CTO of CodeScene and the best-selling author of Your Code as a Crime Scene. Combining degrees in engineering and psychology, Adam helps companies optimize software quality using AI-driven methodologies. He is an international keynote speaker and researcher who enjoys retro computing and martial arts in his spare time.

Follow Adam:


Like this episode?
Show notes & transcript: techleadjournal.dev/episodes/241.
Follow @techleadjournal on LinkedIn, Twitter, and Instagram.
Buy me a coffee or become a patron.

Todos os episódios de Tech Lead Journal

Configurações

Exibição

Idioma

Define quais estações você vê primeiro na página inicial.

Histórico

As rádios e episódios ouvidos recentemente e suas últimas buscas ficam só neste navegador.

Avisos

Um aviso rápido quando um podcast que você segue tem um episódio novo. Desative podcasts individuais pelo sino na página deles.

Conta

Salve favoritos – no app e no site.

Atalhos de teclado

/
Abrir busca
Espaço
Reproduzir ou pausar
← →
No player: voltar 15 s, avançar 30 s (episódios) · na fileira: próximo bloco
↑ ↓
Na fileira: alvo dentro do bloco
Home / End
Na fileira: primeiro ou último bloco
Esc
Fechar janela ou menu
?
Esta visão geral
Tocando agora

Ir para a estação

A seguir

    Adicione episódios com “A seguir” – eles tocam depois do episódio atual.