Skip to main content
AmigoFish

ArjanCodes

ArjanCodesVideoLast show:

Not rated yet

About this show

On this channel, I post videos about programming and software design to help you take your coding skills to the next level. I'm an entrepreneur and a university lecturer in computer science, with more than 20 years of experience in software development and design. If you're a software developer and you want to improve your development skills, and learn more about programming in general, make sure to subscribe for helpful videos.

I post a video here every Friday. If you have any suggestion for a topic you'd like me to cover, just leave a comment on any of my videos and I'll take it under consideration.

Thanks for watching!

Videos come from the channel's public YouTube feed. The artwork is the newest video thumbnail. Last updated . Names, artwork and text belong to their publishers.

Cosmos

Similar by topic and creator

See the full Cosmos

Videos

  • Functional Programming Will Make You a Better Python Developer

    · 14 min

    💡 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

    Not rated yet
  • 7 Things AI Coding Agents Get Wrong (Because You Let Them)

    · 13 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. AI coding agents can write code incredibly fast, but they can also make some surprisingly bad decisions. In this video, I share 7 common mistakes AI coding agents make and practical ways to avoid them. From unclear requirements and unnecessary changes to poor software design and unreliable tests, we'll look at how to guide AI agents more effectively, review their work, and build software that stays maintainable. 🔥 GitHub Repository: https://git.arjan.codes/2026/aicoding. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:38 1. Outdated Patterns 3:21 2. Making up Missing Requirements 5:46 3. Changing Unrelated Things 6:42 4. Generating Too Much at Once 8:16 5. Poor Design Decisions 10:44 6. Code That Looks Right but Fails 11:47 7. Confusing Completion With 13:37 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • The Visitor Pattern in Python (And Better Alternatives)

    · 12 min

    💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. The Visitor pattern has a reputation for being complicated, but the problem it solves is actually quite simple: what happens when you keep adding new operations to the same set of objects? In this video, I use a document editor to compare several ways to solve that problem: methods, pattern matching, the classic Visitor pattern, a dispatch matrix, and Python’s `singledispatch`. More importantly, we’ll look at the trade-offs of each approach and when Visitor is actually worth using. 🔥 GitHub Repository: https://git.arjan.codes/2026/visitor. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:23 Methods on the Nodes 2:41 Pattern Matching Groups Code by Operation 3:53 Classic Visitor 6:23 The Design Problem 7:06 The Dispatch Matrix Underneath Visitor 9:35 Let Python Maintain the Matrix 11:46 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • 7 Python Features That Make Your Code Worse

    · 15 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. Python has a lot of powerful features, but just because you can use them doesn’t mean you always should. In this video, I look at 7 Python features that can quietly make your code harder to understand and maintain, from @property and dataclasses to caching, decorators, async, pattern matching, and slots. The goal isn’t to avoid these features, but to understand the trade-offs and know when they actually improve your design. 🔥 GitHub Repository: https://git.arjan.codes/2026/worse. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 0:30 1. @property: Hiding expensive work 2:20 2. @dataclass: Turning everything into data 4:23 3. match: The fancy if statement 5:27 4. @cache: Free speed that isn’t free 6:53 5. Decorators: When important behavior becomes invisible 9:03 6. async: When async leaks into everything 12:59 7. dataclass(slots=True): Optimizing before measuring 15:09 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • The Memento Pattern: Saving State Without Breaking Encapsulation

    · 15 min

    👨🏻‍💻 Join me in Utrecht next year for an in-person Software Design Retreat! Design, discuss, and learn alongside fellow developers. Join the waitlist: https://arjancodes.com/retreat. 🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. Undo sounds simple until every change needs its own reverse logic. The Memento pattern offers a different approach: save an object's state and restore it when you need to go back. In this video, I show how to implement the Memento pattern in modern Python using snapshots, dataclasses, protocols, and generics. 🔥 GitHub Repository: https://git.arjan.codes/2026/memento. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:20 The Workflow 2:40 Take a Snapshot 6:08 Originator, Memento, and Caretaker 11:02 What Should Be in the Snapshot? 12:03 Undo and Redo 13:12 Memento vs Command 14:01 Beyond Undo 14:35 When Not to Use It 15:07 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • Python 3.15 Is a Bigger Update Than I Expected

    · 12 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. Python 3.15 brings some surprisingly useful changes, from lazy imports and a built-in immutable dictionary to a standard sentinel and a new way to flatten collections. In this video, I walk through the Python 3.15 features that are most likely to affect real projects, including `frozendict`, unpacking in comprehensions, the new sampling profiler, UTF-8 by default, typing improvements, and the latest progress on the JIT and free-threading. 🔥 GitHub Repository: https://git.arjan.codes/2026/py315 💬 Join my Discord server: https://discord.arjan.codes ⌨️ Keyboard I’m using: https://amzn.to/49YM97v 🔖 Chapters: 0:00 Intro 1:00 1. Lazy Imports 2:34 2. frozendict 4:15 3. A Built-In Sentinel 5:37 4. Unpacking Inside Comprehensions 6:22 5. Python Gets a Sampling Profiler 8:09 6. UTF-8 Is the Default 9:18 7. Typing for Extensible Data 10:34 8. The JIT and Free-Threading Direction 11:48 A Few Smaller Improvements 12:19 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • This Design Pattern Replaces an Entire Class Hierarchy

    · 15 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. What should you do when objects differ by type: create subclasses, store an enum like plan_type, or represent each variation as an object? In this video, I use a realistic Python subscription system to compare all three approaches and introduce the Type Object pattern. 🔥 GitHub Repository: https://git.arjan.codes/2026/type. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 2:22 Approach 1: Model the Variation With Subclasses 3:47 Approach 2: Just Store the Type 5:47 Approach 3: Make the Type an Object 8:51 Why Not Just Use the Enum? 9:45 Where Do the Type Objects Live? 14:09 Choosing Between the Three 15:05 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • A personal update: Life, AI, and ArjanCodes

    · 18 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. In this video, I wanted to share a more personal update about what's happening behind the scenes at ArjanCodes. I talk about moving house, moving into a new office, how AI is changing software development, and why I've decided to keep this channel focused on what I care about most: Python, software design, and the fundamentals that stay relevant no matter how much AI evolves. I also share some changes to the channel and introduce the next chapter with Software Design Mastery. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 0:29 The Move 2:22 Second Move 3:58 Channel Focus 7:34 AI 10:16 Channel Direction 13:41 Practical Channel Things 18:04 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • How to Stop Third-Party APIs From Ruining Your Code

    · 11 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. In this video, I use a Stripe payment integration to show what a Facade should really do. You'll learn how to reduce coupling, keep external APIs from leaking into your domain, and design cleaner boundaries that make your code easier to test, maintain, and evolve. 🔥 GitHub Repository: https://git.arjan.codes/2026/facade. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:40 The Real Problem 2:30 The First Refactor 3:50 The Most Common Facade Mistake 4:47 A Facade Is a Boundary 6:37 This Happens Everywhere 7:43 Python Makes This Easy 8:27 Common Facade Mistakes 9:43 Facade vs Adapter 10:20 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • You Think This Is Good OOP… It’s Not

    · 19 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. In this video, I walk through 6 common OOP practices that seem like good design but often make your code worse, including misusing inheritance, creating unnecessary hierarchies, violating the Liskov Substitution Principle, and abstracting too early. More importantly, I'll show what to do instead so your code stays simpler, more flexible, and easier to maintain. 🔥 GitHub Repository: https://git.arjan.codes/2026/oop. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 0:57 Mistake 1: Inheriting Just to Reuse Code 3:02 Mistake 2: Turning Values Into Types 6:19 Mistake 3: Modeling Independent Features With a Hierarchy 8:33 Mistake 4: Creating a Base Class That Forces One Shape on Everything 12:30 Mistake 5: Creating Subtypes That Cannot Behave Like Their Parent 15:18 Mistake 6: Abstracting Before You Understand the Similarity 17:56 What Good OOP Actually Looks Like 18:41 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • 15 Python Libraries That Deserve More Attention

    · 18 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. In this video, I’m sharing 15 Python libraries that can make your code cleaner, faster, and easier to maintain. I cover libraries for configuration, serialization, dependency injection, state machines, scheduling, data analysis, testing, UI development, and more. One of them even fixes a long-standing issue with Python's `datetime` handling around daylight saving time. 🔥 GitHub Repository: https://git.arjan.codes/2026/libraries. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 0:19 Pydantic Settings 2:08 msgspec 3:24 Dacite 4:26 AutoRegistry 5:40 python-statemachine 6:32 Dishka 7:36 DuckDB 8:24 Schedium 9:54 Whenever 10:52 Pint 11:59 GeoPy 12:42 NiceGUI 14:08 Faker 15:24 Zensical 16:24 Complexipy 18:24 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • This Design Pattern Simplifies Everything

    · 19 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. The Composite pattern is one of those design patterns you'll start seeing everywhere once you understand it. In this video, I build a small game engine in Python to explore how the Composite pattern lets you treat individual objects and entire hierarchies the same way. You'll see why this pattern works so well for game scenes, file systems, UI frameworks, menus, and many other tree-like structures. 🔥 GitHub Repository: https://git.arjan.codes/2026/composite. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:10 Every Object Should Behave the Same 3:37 Building the Composite 7:06 The Game Loop 8:20 Building the Level 10:32 Leaf Objects Stay Simple 12:09 Recursive Search 13:47 My Old JavaScript Game 17:17 Pros 17:46 Cons 18:35 When Not To Use Composite 19:11 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • Better Python Code: Ditch the Dictionaries

    · 20 min

    🧱 Build software that lasts. Join the Software Design Mastery program → https://arjan.codes/mastery. In this video, I refactor a Python booking system from loose dictionaries into a strict domain model using dataclasses, enums, and value objects. I show where stronger types improve maintainability, and where a simple string is still the right choice. 🔥 GitHub Repository: https://git.arjan.codes/2026/flexible. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 0:30 The Working Before Version 1:42 The Core Design Lesson 2:55 Step 1: Replace the Dictionary 6:04 Step 2: Split Out Domain Concepts 8:38 Step 3: Replace Magic Strings 10:18 Step 4: Add a Money Value Object 13:46 Step 5: Move Rules Near the Concept 15:19 Step 6: Clean Up the Business Function 15:36 Step 7: Validate at the Boundary 17:52 Keep One String on Purpose 19:04 Why This Improves Maintainability 19:44 The *kwargs Design Smell 20:20 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • Your Codebase Is Too Fragile

    · 17 min

    🧱 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

    Not rated yet
  • Stop Checking for None Everywhere

    · 20 min

    🧱 Build software that lasts. Join the Software Design Mastery waiting list → https://arjan.codes/mastery. 'None' seems harmless at first. But once it starts spreading through your codebase, every function needs more checks, more validation, and more defensive programming. In this video, I show several ways to avoid overusing 'None', including better defaults, fail-fast validation, explicit state modeling, and the Null Object pattern. The goal isn't to eliminate 'None' completely, but to keep uncertainty at the edges of your system and make the core of your code simpler and more reliable. 🔥 GitHub Repository: https://git.arjan.codes/2026/none. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:08 Why None Spreads 2:49 Option 1: Use Better Defaults 4:06 Option 2: Push Validation Earlier 8:21 Option 3: Rely on exceptions 10:26 Option 4: Model Different States Explicitly 12:59 Option 5: Use a Null Object 15:50 Option 6: The Less Common Options 18:34 Fail Fast vs Defensive Programming 19:59 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • AI Writes Code Faster Than You. Now What?

    · 18 min

    🧱 Build software that lasts. Join the Software Design Mastery waiting list → https://arjan.codes/mastery. A few weeks ago, I said I was done with the AI hype. That raised an important question: if AI writes more and more code, what skills actually matter for developers? In this video, I share 5 non-coding skills that I believe will become even more important in the age of AI, from understanding the real problem and making good trade-offs to communication, systems thinking, and mastering the fundamentals. AI can generate code, but great software still requires judgment. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 2:51 Coding Was Never the Hard Part 4:10 Skill #1 — Understanding the Real Problem 7:06 Skill #2 — Knowing the Fundamentals 8:51 Skill #3 — Making Trade-Offs 11:08 Skill #4 — Communication 13:19 Skill #5 — System Thinking 15:02 AI Changes How We Explore Ideas 16:30 Reading Code Is More Important Than Writing Code 17:19 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • Too Many Parameters? Use This Pattern

    · 13 min

    🧱 Build software that lasts. Join the Software Design Mastery waiting list → https://arjan.codes/mastery. Functions with long parameter lists often become harder to understand and maintain as a codebase grows. In this video, I show how the Parameter Object Pattern can help by turning related parameters into a meaningful concept. I look at the benefits, the trade-offs, and why you should be careful not to introduce unnecessary coupling. I’ll also show how this pattern works nicely with Python’s structural pattern matching. 🔥 GitHub Repository: https://git.arjan.codes/2026/param. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:32 The Problem: Parameters Spreading Everywhere 2:54 The Missing Concept: VideoSearchQuery 4:54 Add Validation to the Object 7:03 Easier API Evolution 8:04 Sometimes the Boundary Is Wrong 8:46 The Caveat: Stamp Coupling 10:12 Pattern Matching Becomes More Expressive 12:50 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • You Don’t Need That Design Pattern

    · 14 min

    🧱 Build software that lasts. Join the Software Design Mastery waiting list → https://arjan.codes/mastery. Design patterns aren't bad. But using them too early can make your code more complicated than it needs to be. In this video, I start with a Python example that uses inheritance, strategies, and a factory to solve a very small problem. Then I simplify it and explore a more realistic scenario where an abstraction actually provides value. Along the way, I look at a simple rule of thumb for deciding when a design pattern helps and when it just adds complexity. If you've ever wondered whether you're over-engineering your code, this video is for you. 🔥 GitHub Repository: https://git.arjan.codes/2026/pattern. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:11 What’s Wrong With This? 2:14 Replace the Pattern With Functions 5:03 The Simplified Workflow 5:24 Make It More Realistic 6:40 Let the Adapter Appear Naturally 8:27 Use the Boundary in the Workflow 10:27 The Adapter Implementation 12:27 Testing the Workflow 13:25 Rule of Thumb 13:51 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • Nested Loops Aren’t the Problem. This Is.

    · 15 min

    🧱 Build software that lasts. Join the Software Design Mastery waiting list → https://arjan.codes/mastery. Nested loops are often treated as an algorithm problem. But most of the time, they’re a design problem. In this video, I break down a real example and show why nested loops usually appear: wrong data structures, misplaced behavior, and too many responsibilities in one place. Then we refactor the code step by step into something simpler and easier to understand. 🔥 GitHub Repository: https://git.arjan.codes/2026/nested. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:09 Symptom 1: Wrong Data Structure (Implicit Join) 4:33 Symptom 2: Behavior in the Wrong Place 6:54 Symptom 3: Too Many Responsibilities 12:45 Other Reasons Nested Loops Appear 14:13 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet
  • Your REST API Needs Webhooks

    · 18 min

    🧑🏻‍💻 Take your personal data back with Incogni! Use code ARJANCODES and get 60% off an annual plan: https://incogni.com/arjancodes In this video, I show how to add webhooks to a FastAPI application, and then take it one step further with a cleaner, event-driven design. Instead of tightly coupling your endpoints to integrations, you’ll learn how to decouple side effects using events, making your API more flexible and easier to extend. 🔥 GitHub Repository: https://git.arjan.codes/2026/webhook. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:27 Simple Webhooks 6:01 Incogni Sponsored Segment 7:38 Trigger Webhooks From the Endpoint 8:21 The Design Problem 9:06 Introduce Events 11:25 Refactor the Endpoint 13:35 Move Webhooks to Listeners 15:32 Why This Is Better 16:17 Production Reality Check 17:18 Final Thoughts #arjancodes #softwaredesign #python

    Not rated yet