Answer the question
In order to leave comments, you need to log in
Is it bad practice to create an interface for DTOs to get away from specific implementations using them?
There is a module that has many arguments tied to the transfer of a specific DTO implementation. It is necessary to make this logic more flexible and pass "one family" to the DTO arguments. Will shitcode create a marker interface to avoid being tied to specific implementations? Technically, this will solve the problem, but on various forums I met the answer that this is a bad practice, because implicit logic appears.
Answer the question
In order to leave comments, you need to log in
Is it bad practice to create an interface for DTOs to get away from specific implementations using them?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question