How to refactor tightly coupled classes?

后端 未结 6 1064
天命终不由人
天命终不由人 2021-02-10 02:35

I\'m trying to refactor a big tightly coupled application and trying to make it more maintainable and flexible.

I\'ve got many unit tests, so I\'m hoping to refactor ste

6条回答
  •  既然无缘
    2021-02-10 03:10

    Refactoring to interfaces and dependency injection are going to be key in reducing coupling. You might also want to consider using factories for the creation of your dependent objects.

提交回复
热议问题