T
T
Tsiren Naimanov2017-07-09 15:45:33
ASP.NET
Tsiren Naimanov, 2017-07-09 15:45:33

Will there be a big mistake if you do not divide into projects?

Good afternoon/evening!
In the aspnet mvc arch
example, there is a division into projects.
Is it a mistake to split into subfolders instead of projects?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zelimkhan Beltoev, 2017-07-09
@Beltoev

Of course, there will be no mistakes: every architecture has the right to life.
But if you break it into projects with proper use of interfaces and dependency injection, then in the future it will make it easier to add new functionality / rewrite existing ones.
For example, if you take out all interaction with the database in a separate project, then in the future, if the type of the database suddenly changes or, for example, you switch from MySQL to regular files, then it will be enough to add a separate project, write logic and change the implementation class in the dependency injection container instead of in order to rewrite an existing project, partially breaking the functionality and creating new crutches. The principle of modularity from SOLID in all its glory.
Well, on the topic, you can read " Dependency Injection in .NET"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question