About
A namespace:
- is a space for a name
- is a hierarchy relationship (tree) that provides organization capability to primary modeling element (entity, relationship)
- is part of the fully qualified identifier of an entity
- provides the scoping functionality
- provides a grouping capability for its members (named element)
Example
- File System - Directory - the directory for a file
- Java - Package - the package for class
Design Rule
According to magical number:
- the number of part that consists of the package path should not exceed <math>7 \pm 2</math>
- the number of item in each package should not exceed <math>7 \pm 2</math>
Example:
- Bad package name because there is more than 7 parts which makes it really difficult to read and remember
com.example.really.blue.design.panel.carpet.koning