J
J
jekanok2020-12-07 00:26:58
Design patterns
jekanok, 2020-12-07 00:26:58

What is the service layer pattern for?

Hello, please tell me what is such a design pattern as a service layer (service layer)? What is it for?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Sarvarov, 2020-12-07
@megakor

It is needed in order not to violate the DRY SOLID principle (do not copy-paste the code) and to separate some application logic into a separate service class.
Saves a little from shitty code in small applications, but not much (read about DDD).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question