Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is domain logic?

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?

like image 997
Sydius Avatar asked Dec 11 '08 20:12

Sydius


People also ask

What is domain logic vs application logic?

The main difference between them is that domain services hold domain logic whereas application services don't. As we discussed in a previous post, domain logic is everything that is related to business decisions.

What is domain in DDD principle?

Domain-Driven Design(DDD) is a collection of principles and patterns that help developers craft elegant object systems. Properly applied it can lead to software abstractions called domain models. These models encapsulate complex business logic, closing the gap between business reality and code.

What is the meaning of business logic?

Business logic is the programming that manages communication between an end user interface and a database. The main components of business logic are business rules and workflows.

Why is it called business logic?

If you were a professional graphic designer, there certainly would be business involved with using your imaging application - your job is your business! So "business logic" refers to the parts of the code that define how the user conducts his business (in this case, manipulating images).


1 Answers

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.

like image 109
jakber Avatar answered Oct 13 '22 03:10

jakber