#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(279)

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

The Hidden Stories Sabotaging Your Culture Change

The Hidden Stories Sabotaging Your Culture Change

Why do 70% of change efforts fail — even when leadership is fully committed? The answer isn’t strategy or resources; it’s the hidden stories people unknowingly carry that silently block every initiati...

15 Juni 1h 8min

Creator of Meta's Hack: Your AI Will Always Cheat — Here's How to Stop It

Creator of Meta's Hack: Your AI Will Always Cheat — Here's How to Stop It

What if your AI coding agent is quietly cheating on your tests — and how do you stop it? Julien Verlaguet, who built the type system Meta used to migrate tens of millions of PHP lines, is now building...

8 Juni 1h 18min

Eric Ries: Why Good Tech Companies Go Bad, and How to Stop It

Eric Ries: Why Good Tech Companies Go Bad, and How to Stop It

Why do companies with the best intentions end up betraying their customers, employees, and mission? Eric Ries calls it “financial gravity” — an invisible force that pulls even the most principled comp...

1 Juni 1h

Populärt inom Teknik

uppgang-och-fall
market-makers
skogsforum-podcast
rss-uppgang-och-fall
rss-elektrikerpodden
rss-laddstationen-med-elbilen-i-sverige
 och-bilen-gar-bra
elbilsveckan
natets-morka-sida
rss-en-ai-till-kaffet
developers-mer-an-bara-kod
bosse-bildoktorn-och-hasse-p
rss-veckans-ai
bli-saker-podden
rss-fabriken-2
rss-upplyst-entreprenordirektor
rss-jonas-jaani-podcast
rss-milpodden
hej-bruksbil
garagehang