Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If you don't know cohesion, you might be a crappy coder
Message
From
31/05/2021 08:37:29
Walter Meester
HoogkarspelNetherlands
 
 
To
30/05/2021 20:14:49
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01680834
Message ID:
01680849
Views:
41
>Wrong. https://en.wikipedia.org/wiki/Cohesion_(computer_science)
>
>A thing must be internally cohesive. It must have loose connections to other things. Even if all of those things make for a single thing, it still has nothing to do with where the blueprints are stored at design time.


Wrong...

from the same link.
Related methods are in the same source file or otherwise grouped together; for example, in separate files but in the same sub-directory/folder.

This is for the obvious reason that you don't have to make changes in multiple source files an it then is obvious that methods/functions belong together. By putting functions into separate files you lost the cohesion of the source code altogether, because it is not obvious which functions belong to what module.
Previous
Reply
Map
View

Click here to load this message in the networking platform