Skip to main content
AmigoFish

Functional Programming Will Make You a Better Python Developer

From ArjanCodes · · 14 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.

Watch on YouTube

Not rated yet

Description

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.

Functional programming isn't just about `map()`, `filter()`, and avoiding classes. It's a different way of thinking about how data flows through your application.

In this video, I refactor a Python fraud detection system to explore pure functions, immutability, function composition, and the functional core, imperative shell pattern. You'll see how separating calculations from side effects makes your code easier to understand, test, and maintain, without having to turn Python into a purely functional language.

🔥 GitHub Repository: https://git.arjan.codes/2026/func.

💬 Join my Discord server: https://discord.arjan.codes.

⌨️ Keyboard I’m using: https://amzn.to/49YM97v.

🔖 Chapters: 0:00 Intro 1:00 Start With a Stateful Fraud Detector 1:37 1. Make the Calculations Pure 5:04 2. Think in Transformations Instead of Mutations 8:18 Function Composition 9:57 What Happens When We Add a Model? 11:05 Functional Core, Imperative Shell 13:02 Why This Still Matters When AI Writes the Code 13:51 Final Thoughts

#arjancodes #softwaredesign #python

Back to ArjanCodes · Report a problem