cover-img

Code Smell 16 - Ripple Effect

If small changes have big impact, you need to decouple your system

19 October, 2022

11

11

0

Small changes yield unexpected problems.

TL;DR: If small changes have big impact, you need to decouple your system.

Problems

Coupling

Solutions

1.

Decouple.

2.

Cover with tests.

3.

Refactor and isolate what is changing.

4.

Depend on interfaces.

Examples

Legacy Systems

Sample Code

Wrong

Right

Detection

It is not easy to detect problems before they happen. Mutation Testing and root cause analysis of single points of failures may help.

Tags

Legacy

Conclusion

There are multiple strategies to deal with Legacy and coupled systems. We should deal with this problem before it explodes under our eyes.

Relations

More info

Credits

Architecture is the tension between coupling and cohesion.

Neal Ford
This article is part of the CodeSmell Series.

cleancode

codesmell

11

11

0

cleancode

codesmell

Maxi Contieri

Buenos Aires, Argentina

🎓Learn something new every day.📆 💻CS software engineer 👷coding👨🏽‍🏫teaching ✍🏾writing 🎨Software Design 🏢SOLID 🌉TDD 👴Legacy 💩Code Smells

More Articles

Showwcase is a professional tech network with over 0 users from over 150 countries. We assist tech professionals in showcasing their unique skills through dedicated profiles and connect them with top global companies for career opportunities.

© Copyright 2024. Showcase Creators Inc. All rights reserved.