dddinpython.hashnode.dev📢 Introducing lato: A Python Microframework for Modular ApplicationsI'm thrilled to announce the release of lato, a microframework designed to empower developers in building modular applications with Python. Born out of the necessity to streamline development within the realm of Domain-Driven Design, lato has evolved...Mar 21, 2024·2 min read
dddinpython.hashnode.devMastering Aggregates in Domain-Driven DesignSo far we have discussed the basic building blocks of Domain-Driven Design: entities - objects that have a distinct identity that doesn't change throughout the life of an object, even though their other attributes might change, value objects - obje...Dec 5, 2023·8 min read
dddinpython.hashnode.devImplementing the Repository pattern using SqlAlchemy (part 2)In the previous post, we implemented a really simple file-based repository that used the pickle module. As we didn't use a database, we didn't have to deal with creating tables and columns, and all the domain models were directly serialized from a me...Nov 9, 2022·11 min read
dddinpython.hashnode.devImplementing the Repository pattern (part 1)Repository pattern - why do we need it? The main goal of the repository pattern is to abstract the logic used for retrieving (loading) and persisting (saving) entities in external storage. The interface of a repository usually resembles the ones used...Sep 23, 2022·5 min read
dddinpython.hashnode.devDomain Entities in PythonIn the previous post, we discussed the implementation of Value Objects. This time let's focus on a different kind of Domain Objects - Entities. The distinction is pretty intuitive: Entities are usually big things like Customer, Ship, Rental Agreemen...Jul 22, 2022·4 min read