- How to structure reusable code files in larger projects
- See modeling doc
- Package is the level of abstration
- One purpose/responsibility per file
- Files in package work together
Java | Golang |
---|---|
Class is unit of abstraction | Package is unit of abstraction |
Relying on package scope is uncommon | Package scope is heavily used |
Packages are nested | Packages are flat |
- TODO: packages