HackSoftware / Django-Styleguide

Django styleguide used in HackSoft projects
MIT License
5.12k stars 520 forks source link

what is boxes? #125

Closed EliaoHame closed 1 year ago

EliaoHame commented 1 year ago

what is the specific meaning of boxes mentioned in the article? can you give an example?

RadoRado commented 1 year ago

Hello @EliaoHame :wave:

A "box" is an abstract concept for a place where you keep things, related to a specific concept.

For example, Django, as a framework, gives you multiple boxes:

And when we are talking about "boxes" in the Django Styleguide, we are saying that we need to define our own "box", for where to keep business logic - the so-called services & selectors.

That's about it.

EliaoHame commented 1 year ago

got it. thanks