How to Decouple a Legacy System

Written by mcsee | Published 2020/08/02
Tech Story Tags: refactoring | refactor-legacy-code | software-engineering | solid-principles | object-oriented-design | object-oriented | design-patterns | hackernoon-top-story | web-monetization

TLDR An example on how to convert a legacy design into a better one. How to Decouple a legacy system? Decoupling the system is a vicious circle. The solution to this deadlock is to write the tests declaratively, thus generating better interfaces. We write tests to cover pre-existing functionality before making any changes. The class name does not represent a real name in the bijection. It is a very implemental invocation (coupled to getInstance()) and not very declarative.via the TL;DR App

no story

Written by mcsee | I’m a sr software engineer specialized in Clean Code, Design and TDD Book "Clean Code Cookbook" 500+ articles written
Published by HackerNoon on 2020/08/02