Your Codebase Is Too Fragile
From ArjanCodes · · 17 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.
If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.
Description
🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery.
In this video, I refactor a travel booking workflow to show how structural coupling, temporal coupling, and connascence make code fragile. You'll learn how to spot these problems, reduce the impact of future changes, and design workflows that are much easier to maintain.
🔥 GitHub Repository: https://git.arjan.codes/2026/coupling.
💬 Join my Discord server: https://discord.arjan.codes.
⌨️ Keyboard I’m using: https://amzn.to/49YM97v.
🔖 Chapters: 0:00 Intro 1:42 The Before Version 3:38 Structural Coupling 3:54 Temporal Coupling 4:53 The Refactoring 8:26 Payoff: Why the Hook Happened 9:29 The Law of Demeter 12:45 Interfaces Where They Help 15:16 Connascence 17:04 Final Thoughts
#arjancodes #softwaredesign #python