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

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

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

Det här avsnittet är hämtat från ett öppet RSS-flöde och publiceras inte av Podme. Det kan innehålla reklam.

Avsnitt(282)

The IT/OT Handbook: From Silos to Sustainable Digitalization - David Ariens & Willem van Lammeren

The IT/OT Handbook: From Silos to Sustainable Digitalization - David Ariens & Willem van Lammeren

Why can’t you “move fast and break things” in a factory? Because a small software bug doesn’t just crash an app, it can shut down a plant the size of a small city. David and Willem explain the hidden ...

28 Sep 1h 7min

Don't Outsource Your Thinking: How to Lead in the AI-Native Era - Emilie Schario

Don't Outsource Your Thinking: How to Lead in the AI-Native Era - Emilie Schario

What’s the one rule that matters most when AI writes most of your code? Emilie says it comes down to a single line: don’t outsource your thinking.In this episode, Emilie Schario, co-founder of Kilo Co...

7 Sep 59min

The Father of AI Assistant on Why Joy Comes Before Success - Kevin Surace

The Father of AI Assistant on Why Joy Comes Before Success - Kevin Surace

If you’re not using AI five times an hour, you’re already behind, says the man who built the first AI assistant back in 1998. Kevin explains why that pace is now the baseline, not the exception, for d...

24 Aug 55min

Software Engineering Laws Every Developer Must Know in the AI Era - Milan Milanovic

Software Engineering Laws Every Developer Must Know in the AI Era - Milan Milanovic

Does moving faster with AI mean you get to skip the laws that governed every software project before it? Milan Milanovic argues the opposite, the old laws of software engineering now apply twice as ha...

10 Aug 1h 1min

Signals & Levers: Systems Thinking to Navigate Software Delivery Illusions - Elisabeth Hendrickson & Joel Tosi

Signals & Levers: Systems Thinking to Navigate Software Delivery Illusions - Elisabeth Hendrickson & Joel Tosi

(04:48) Brought to you by SpeechifyAITired of text-to-speech that sounds robotic or costs too much at scale? SpeechifyAI's new Simba 3.2 model ranks #1 on Artificial Analysis for realness, priced unde...

3 Aug 1h 17min

From Technical Debt to Triple Debt: The Hidden Cost of AI-Generated Code

From Technical Debt to Triple Debt: The Hidden Cost of AI-Generated Code

Is vibe coding quietly draining the thing that makes teams effective: their shared understanding? Margaret breaks down her new “triple debt” model, and why cognitive debt might be the one nobody’s tra...

27 Juli 1h 10min

Ex-Gojek CTO: Why the Age of AI Rewards Builders as Judgment Becomes Expensive

Ex-Gojek CTO: Why the Age of AI Rewards Builders as Judgment Becomes Expensive

If expertise is becoming almost free, why is judgment becoming the most expensive skill in tech? Ajey Gore, former Gojek CTO, explains why the age of AI agents rewards builders over typists.In this ep...

13 Juli 1h 22min

The AI Productivity Paradox: Why 10X Output Doesn't Mean 10X Business Outcome

The AI Productivity Paradox: Why 10X Output Doesn't Mean 10X Business Outcome

What if optimizing for AI output is actually slowing your company down? When code becomes nearly free to produce, the organizations still measuring productivity by output are solving the wrong problem...

29 Juni 1h 5min

Populärt inom Teknik

uppgang-och-fall
bilar-med-sladd
vi-bilagares-podcast
rss-ai-med-jonas-benjamin
market-makers
elbilsveckan
rss-laddstationen-med-elbilen-i-sverige
rss-technokratin
natets-morka-sida
rss-elektrikerpodden
rss-uppgang-och-fall
skogsforum-podcast
rss-snacka-om-ai
rss-en-ai-till-kaffet
bli-saker-podden
rss-veckans-ai
hej-bruksbil
developers-mer-an-bara-kod
rss-elektrifieringspodden
rss-sakerhetspodcasten