[{"data":1,"prerenderedAt":73},["ShallowReactive",2],{"term-c\u002Fcoupling":3,"related-c\u002Fcoupling":59},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":53,"sitemap":54,"stem":57,"subcategory":6,"__hash__":58},"terms\u002Fterms\u002Fc\u002Fcoupling.md","Coupling",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Coupling is how much two pieces of code depend on each other. Tight coupling means changing one breaks the other — like Siamese twins. Loose coupling means they barely know each other — like coworkers who communicate through Slack. Loose coupling is almost always better.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Coupling measures the degree of interdependence between software modules. Tight coupling (high coupling) makes modules difficult to change, test, or reuse independently. Loose coupling is achieved through interfaces, dependency injection, and event-driven communication.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"These two services are too tightly coupled — they deploy together or not at all.\" \u002F \"Reduce coupling by introducing an interface between them.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"architecture","Coupling is how much two pieces of code depend on each other. Tight coupling means changing one breaks the other — like Siamese twins.","intermediate","md","c",{},true,"\u002Fterms\u002Fc\u002Fcoupling",[49,50,51,52],"Cohesion","Dependency Injection","Separation of Concerns","Dependency Inversion",{"title":5,"description":41},{"changefreq":55,"priority":56},"weekly",0.7,"terms\u002Fc\u002Fcoupling","oMbA5GjHqfOXy3ONUlPszkOsNZTgy0VNK8nc4etk5B8",[60,63,66,69],{"title":49,"path":61,"acronym":6,"category":40,"difficulty":42,"description":62},"\u002Fterms\u002Fc\u002Fcohesion","Cohesion is how well the things inside a module belong together. High cohesion means all the stuff in a class is related — like a toolbox full of tools.",{"title":50,"path":64,"acronym":6,"category":40,"difficulty":42,"description":65},"\u002Fterms\u002Fd\u002Fdependency-injection","Instead of your UserService creating its own DatabaseConnection (tight coupling), you pass the database in from outside: new UserService(db).",{"title":52,"path":67,"acronym":6,"category":40,"difficulty":42,"description":68},"\u002Fterms\u002Fd\u002Fdependency-inversion","Dependency Inversion says high-level code shouldn't depend on low-level code — both should depend on abstractions.",{"title":51,"path":70,"acronym":6,"category":40,"difficulty":71,"description":72},"\u002Fterms\u002Fs\u002Fseparation-of-concerns","beginner","Separation of Concerns means different parts of your code should handle different concerns and not step on each other's toes.",1776518270562]