DEV Community

loading...
Cover image for Code Smell 16 - Ripple Effect

Code Smell 16 - Ripple Effect

mcsee profile image Maxi Contieri Originally published at Medium ・1 min read

Small changes yield unexpected problems.

Problems

Solutions

  1. Decouple.
  2. Cover with tests.
  3. Refactor and isolate what is changing.
  4. Depend on a interfaces.

Examples

  • Legacy Systems

Sample Code

Wrong

Right

Detection

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

Photo by Jack Tindall on Unsplash


Architecture is the tension between coupling and cohesion.

Neal Ford

Discussion (0)

pic
Editor guide