I mean referring to specific database rows by their ID, from code, or specifying a class name in the database.Example:
This question will treat software like a tree, where: Each node in the tree represents some code unit (eg class \\ method \\ line etc.)
My game base consists of a series of modules, organized as classes, that are created, updated and interact when needed.
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.\"
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
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(
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
Is there an ORM tied to MS SQL 2008+, generating .NET code, which takes advantage of MS SQL specific features?
Could someone share the way how this should be designed: Let\'s say I have some data model, which is built using Entries.
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.