What is domain logic?

后端 未结 9 1750
时光取名叫无心
时光取名叫无心 2021-01-30 09:03

What is domain logic? The Wikipedia page for domain logic redirects to business logic. Are they the same thing, and, if not, how do they differ?

相关标签:
9条回答
  • 2021-01-30 09:24

    My domain is pharmaceutical. It deals in compartments, doses, differential equations, and statistics. If you want to call that my "business", then I guess it's "business logic".

    0 讨论(0)
  • 2021-01-30 09:26

    I would say the Business Logic is related to:

    Any logic or association between entities in the Domain.

    So how does a Student relate to a Class or a Student. How is a new Class created and how do you Register a Student for that Class

    Anything to do with business rules, determining outcomes, services, events, processes, calculations, transformation and related data manipulations/creation.

    I have found it hard to find good books/teachers to help structure domain logic. It's easy to structure the domain. But domain logic seems to me a place no one wants to go.

    0 讨论(0)
  • 2021-01-30 09:32

    The domain is what you are modelling.

    If you are modelling a business problem, they are the same thing.

    If you are modelling something else, physics for instance, there is probably no business logic in your system, but the physics parts are still domain logic.

    0 讨论(0)
提交回复
热议问题