c++ Programming Glossary: coupling
Why is the C++ STL is so heavily based on templates? (and not on *interfaces*) http://stackoverflow.com/questions/1039853/why-is-the-c-stl-is-so-heavily-based-on-templates-and-not-on-interfaces the goals of OOP Doesn't it achieve reusability low coupling modularity and encapsulation And doesn't it achieve these goals..
#pragma once vs include guards? http://stackoverflow.com/questions/1143936/pragma-once-vs-include-guards could use Redundant Include Guards but that adds a tight coupling between the included file and the including file. Usually it's..
Why don't STL containers have virtual destructors? http://stackoverflow.com/questions/1647298/why-dont-stl-containers-have-virtual-destructors the big selling points for composition is that you reduce coupling in your code but this solution fully couples the STL container..
Does using callbacks in C++ increase coupling? http://stackoverflow.com/questions/1727824/does-using-callbacks-in-c-increase-coupling using callbacks in C increase coupling Q1. Why are callback functions used Q2. Are callbacks evil.. question Regardless of using callbacks in C increase coupling or not I suggest using event handler style especially process..
Why does C# not provide the C++ style 'friend' keyword? http://stackoverflow.com/questions/203616/why-does-c-sharp-not-provide-the-c-style-friend-keyword that it is not suited to handle. By using friend you are coupling two classes' implementations together which is much worse then..
Are virtual destructors inherited? http://stackoverflow.com/questions/2198379/are-virtual-destructors-inherited for shared libraries tricky. Also the increased coupling can result in a lot of recompilation in the face of certain..
Private and Protected Members : C++ http://stackoverflow.com/questions/224966/private-and-protected-members-c try to make members private whenever you can to reduce coupling and protect the implementation of the base class but if that's..
Is there a way to use pre-compiled headers in VC++ without requiring stdafx.h? http://stackoverflow.com/questions/290034/is-there-a-way-to-use-pre-compiled-headers-in-vc-without-requiring-stdafx-h of precompiled headers is that they encourage unrequired coupling and make reusing code harder than it should be. Also code that's..
Qt: Qt classes vs. standard C++ http://stackoverflow.com/questions/3523622/qt-qt-classes-vs-standard-c Just remember that that using a lib here will be tightly coupling your code the lib thus extracting it latter date will be non..
Diamond inheritance (C++) http://stackoverflow.com/questions/379053/diamond-inheritance-c this question Inheritance is the second strongest more coupling relations in C preceded only by friendship. If you can redesign..
What is wrong with making a unit test a friend of the class it is testing? http://stackoverflow.com/questions/4171310/what-is-wrong-with-making-a-unit-test-a-friend-of-the-class-it-is-testing anything about the tests and that you do not want tight coupling of the class and its test. Can someone please explain these..
Using Assembly Language in C/C++ http://stackoverflow.com/questions/4202687/using-assembly-language-in-c-c
Should objects delete themselves in C++? http://stackoverflow.com/questions/522637/should-objects-delete-themselves-in-c with this is that you're really creating an implicit coupling between the object and the World class. If I try to call Update..
What are access specifiers? Should I inherit with private, protected or public? http://stackoverflow.com/questions/5447498/what-are-access-specifiers-should-i-inherit-with-private-protected-or-public friend ship is used to indicate a intentional strong coupling between two entities. If there exists a special relationship..
Is there a standard #include convention for C++? http://stackoverflow.com/questions/691079/is-there-a-standard-include-convention-for-c this question I always use the principle of least coupling. I only include a file if the current file actually needs it..
MVC approach with C++ http://stackoverflow.com/questions/6929957/mvc-approach-with-c and view classes so the important part is this all the coupling between view and model objects is isolated to the controllers..
Pimpl idiom vs Pure virtual class interface http://stackoverflow.com/questions/825018/pimpl-idiom-vs-pure-virtual-class-interface type 1 and only sometimes when I really want to minimize coupling and compile time dependencies. Often it's not worth the bother...
Is it possible to prevent multiple inheritance of specific base classes at compile time? http://stackoverflow.com/questions/8754775/is-it-possible-to-prevent-multiple-inheritance-of-specific-base-classes-at-compi improve this question You are setting up some kind of coupling between Base1 and Base2 in that they cannot both be derived..
Why use virtual functions? [duplicate] http://stackoverflow.com/questions/8824359/why-use-virtual-functions addresses of the Derived class objects provides a loose coupling in the way that the program does not have to change drastically..
|