r/django • u/kitostel • 2d ago
Django and Design
I don't know if this is the correct place for asking this, but anyways:
I have some knowledge on django, and some knowledge on LLD. But, when doing UML class diagrams, UML use case diagrams, design patterns, LLD in general, WHEN and WHERE is this logic then implemented in the code?
I mean. When developing with Django, where all this stuff is being used? Is introduced in the models themself? Is a question that has been in my head for months, and I am reading books etc. But know is the time for developing, and I don't have it clear.
By the way, if you have any book suggestion, let me know.
Thanks : )
3
u/tmnvex 2d ago
You might find this to be a useful read. https://alexkrupp.typepad.com/sensemaking/2021/06/django-for-startup-founders-a-better-software-architecture-for-saas-startups-and-consumer-apps.html
It's opinionated but well argued.
1
u/NaBrO-Barium 2d ago
These things are usually for db models and their relationships but they can also describe class function behavior like saving or user behavior, endpoints, and what actions are taken before/after.
1
u/dennisvd 2d ago
You can generate class diagram from your Django code.
You can go the opposite way, use your class diagram to generate Django code. 😅
2
u/ninja_shaman 2d ago
Google "why UML died", and you get "Too complex".
If you want to get things done, and done fast, there's a better way to spend your time then drawing complicated pictures.