coupling
When is it OK to blur the abstraction between data and logic?
I mean referring to specific database rows by their ID, from code, or specifying a class name in the database.Example:[详细]
2023-04-11 11:31 分类:问答Cohesion VS. Coupling
This question will treat software like a tree, where: Each node in the tree represents some code unit (eg class \\ method \\ line etc.)[详细]
2023-03-25 09:51 分类:问答Best option for managing module classes
My game base consists of a series of modules, organized as classes, that are created, updated and interact when needed.[详细]
2023-03-24 04:00 分类:问答Keeping Coupling Low While Adhering to DRY
The mantra \"Keep high cohesion and low coupling\" (or some variant) is frequently tossed around.However, I find that it frequently conflicts with \"Don\'t repeat yourself.\"[详细]
2023-03-17 05:10 分类:问答Package stability metrics, but for specific classes?
I\'m wondering if there\'s a metric similar to the Package Stability Metric defined by Robert Martin that can be used to know when a package should or shouldn\'t depend on another, by its Instability[详细]
2023-03-08 05:56 分类:问答Coupling of objects
Assuming I have methods of doA(), doB() and doC() of classes A,B and C respectively. Than unless I am wrong, doA() method should belong to class A. It must be executed from Class A. If a method doA([详细]
2023-02-27 03:31 分类:问答Low coupling and tight cohesion
Of course it depends on the situation. But when a lower level object or system communicate with an higher level system, should callbacks or events be preferred to keeping a pointer to the higher level[详细]
2023-02-12 07:53 分类:问答ORM - specific to SQL Server 2008+ for .NET
Is there an ORM tied to MS SQL 2008+, generating .NET code, which takes advantage of MS SQL specific features?[详细]
2023-02-10 02:07 分类:问答Flash / ActionScript - application design question
Could someone share the way how this should be designed: Let\'s say I have some data model, which is built using Entries.[详细]
2023-02-03 02:41 分类:问答Is it clean for an object to generate another object when not in a factory design?
Say you a class ZipFile and a class Content. ZipFile has a load() method for reading the contents of all files in the zip archive and put it in a Content object.[详细]
2023-01-31 16:58 分类:问答