Skip to content

Shubh2-0/Coupling

Repository files navigation

🔗 Software Coupling

GitHub stars GitHub forks

Understanding Code Dependencies

From tight coupling to loose coupling - best practices


🎯 About

Learn about software coupling - the degree of interdependence between modules. Understand different coupling types and achieve loosely coupled, maintainable code.

📊 Coupling Types

Type Coupling Level Description
Content Highest (Worst) Direct access to internals
Common High Shared global data
Control Medium Pass control information
Stamp Medium Pass data structures
Data Low Pass only needed data
Message Lowest (Best) Communication via messages

💡 Best Practice

Tight Coupling ❌          Loose Coupling ✅
┌──────┐                   ┌──────┐
│  A   │──────────►│  B   │         │  A   │─────Interface─────►│  B   │
└──────┘  Direct   └──────┘         └──────┘                    └──────┘

🛠️ Technologies

Java | Design Patterns | SOLID Principles

📬 Contact

LinkedIn Gmail


Keywords: Java Coupling Loose-Coupling Design-Principles SOLID Clean-Code

About

This repository offers practical examples to understand different types of software coupling. Improve code organization and maintainability. Ideal for beginners seeking to enhance their understanding of software design principles and best practices. Explore the various coupling types and gain insights into achieving loosely coupled, modular systems

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages