10 Python Patterns, Part 5: The Repository Pattern in Django
Learn how to use the Repository Pattern in Django to isolate your database logic from business rules, making your codebase more modular, testable, and future-proof.
Category
Learn how to use the Repository Pattern in Django to isolate your database logic from business rules, making your codebase more modular, testable, and future-proof.
Stop hard-coding side effects. Learn how to use the Event-Driven Pattern with Django Signals and Celery to create a decoupled, reactive architecture that scales.
The Builder Pattern helps manage complex object creation without overloading models, views, or forms. In Django projects, it is especially useful when assembling objects from multiple inputs, conditional steps, or external data sources. This post shows how the Builder Pattern keeps creation logic ex
This post explains how the Strategy Pattern helps Django applications avoid large conditional blocks as business logic grows. Using a practical Django example with class-based views and services, it shows how to encapsulate interchangeable behaviors, keep code open for extension, and make new featur
This post introduces Dependency Injection as the first and most important pattern for building scalable Django applications. Using a practical, step-by-step example, it shows how to structure models, repositories, services, forms, and class-based views to reduce coupling, improve testability, and ke
Stop writing endless "The user shall" sentences. Learn how the C4 Model and Mermaid.js provide a visual, code-backed alternative for documenting system architecture, featuring a practical Django user-auth example.
Effective use cases are the backbone of any successful software project. However, static documents often fail in fast-paced environments. This guide explains how to write high-impact use cases and provides a step-by-step walkthrough on building a modern management system using Google Sheets and the
If you get the error “No Android connected device found” when running a React Native Expo app, don’t worry. This guide walks you through 4 practical options to run your app, including using a physical device, an emulator, environment variable fixes, and Expo tunnel mode.
A step-by-step beginner-friendly guide to setting up React Native with Expo in Visual Studio Code, from installation to running your first app.