Why should a web architecture be loosely coupled?

后端 未结 13 1989
盖世英雄少女心
盖世英雄少女心 2020-12-23 14:19

When I look at ASP.NET MVC projects I everytime see loose coupled architecture.

For what do I need a loose coupling in a web architecture (if I do not make unit test

13条回答
  •  心在旅途
    2020-12-23 15:18

    A loosely coupled architecture will help you when your application needs to change or grow. And any non-trivial application will eventually need to change or grow.

    If you design with a loosely coupled architecture, only a few parts of the application should be affected when requirements change. With a too tight coupled architecture, many parts will need to change, and it will be difficult to identify exactly which parts will be affected.

    One of the main benefits of TDD, in my opinion, is that at helps promote a loosely coupled architecture.

提交回复
热议问题