Interface programming

Background

The developer of my team executed the application that I was viewing. He used interfaces everywhere. The application has a typical service level, data level, and POCO objects transferred from the website to DB.


Assumption

IOC used (through Unity) to implement a specific service class and runtime Data. All POCOs have nothing but methods for obtaining and setting public properties.


Question

I understand why the interface is used at the "Service and Data" level, but why do you use interfaces for all POCO objects? Is this too much?

+3
source share
2 answers

POCO? , . , , YAGNI.

, , , , .

.

+4

, POCO . , , - . .

+4

Source: https://habr.com/ru/post/1794201/


All Articles