Tech Lead Journal

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


Listen Later

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

  • LinkedIn – linkedin.com/in/adam-tornhill-71759b48
  • CodeScene – codescene.com
  •  Your Code as a Crime Scene – pragprog.com/titles/atcrime2/your-code-as-a-crime-scene-second-edition


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.

...more
View all episodesView all episodes
Download on the App Store

Tech Lead JournalBy Henry Suryawirawan

  • 4.7
  • 4.7
  • 4.7
  • 4.7
  • 4.7

4.7

14 ratings


More shows like Tech Lead Journal

View all
The Knowledge Project by Shane Parrish

The Knowledge Project

2,705 Listeners

Software Engineering Radio - the podcast for professional software developers by team@se-radio.net (SE-Radio Team)

Software Engineering Radio - the podcast for professional software developers

272 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

288 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

624 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

582 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

289 Listeners

Thoughtworks Technology Podcast by Thoughtworks

Thoughtworks Technology Podcast

44 Listeners

The InfoQ Podcast by InfoQ

The InfoQ Podcast

38 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

989 Listeners

Today, Explained by Vox

Today, Explained

10,312 Listeners

The Stack Overflow Podcast by The Stack Overflow Podcast

The Stack Overflow Podcast

64 Listeners

The Big Take by Bloomberg

The Big Take

155 Listeners

科技工作講 Tech Job N Talk by Tech Job N Talk 科技工作講

科技工作講 Tech Job N Talk

25 Listeners

HBR On Leadership by Harvard Business Review

HBR On Leadership

170 Listeners

The Pragmatic Engineer by Gergely Orosz

The Pragmatic Engineer

70 Listeners