In general, this should be good for your example if your packages were "N.UI" and "N.Util". I have seen namespaces used in two common models:
1) All levels of the system have a namespace (i.e. database, network, business, etc.)
2) Each component has a namespace (i.e. Client, invoice) and multi-level names located under
In either case, the subspace namespaces will be bundled packages in a larger namespace, so it would be great if the user interface depended on your domain objects.
However, although it would be normal for NX classes to rely on classes from N, I donβt think that for classes from N it would be reasonable to depend on classes from NX - it looks like you could use some reorganization in this case.
source share