So I have logical entities (person, country, etc.), GUI elements / controls, data and navigation controllers / managers, then things like quad-trees and timers, and I always struggle with cleanly separating these things into logical namespaces.
I usually have something like this:
Are there any good guides on this? I need to stop this mess.
NET Framework classes are organized in namespaces, to be used more clearly and to avoid chaos. Furthermore, custom namespaces are extensively used by programmers, both to organize their work and to avoid naming collisions.
A namespace is a declarative region that provides a scope to the identifiers (the names of types, functions, variables, etc) inside it. Namespaces are used to organize code into logical groups and to prevent name collisions that can occur especially when your code base includes multiple libraries.
For applications
Company.Product.Tier.Sub.Sub
where I like to get Tier from Model, View, Controller or other established names (Data)
But for our controls, we end up with
Company.Product.LogicalFeatureGrouping
or
Company.Product.Addon
sometimes it's
Company.Product.LogicalFeatureGrouping.Addon
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With