More Layers for All of the Things!
Of course our solution here is to really add another layer to the MVC paradigm. We now have
EPVC, which might stand for Entity-Persistence-View-Controller if that were a thing. This
doesn’t mean that every problem can be solved simply by throwing another layer at the problem.
But it does make sense to split up our representation of the data with the persistence of the data
as they really are two different things.
Doing this allows us to move the database away from being the core of our application to being
an external resource. The entities now become the core, which leads to an entirely different way
of thinking about software applications.
Do'stlaringiz bilan baham: |