A small file is easy to read. A real project needs more than one file. Organization keeps names easy to find.
Think of a package like a box with a label. Files are smaller boxes inside it. export marks what other files may use. import brings a name into the file that needs it.
This part teaches files, packages, imports, exports, and common library modules. It shows what to write and where to put it.
Good organization keeps a project calm when it grows.
Chapters
Organization
Chapter»FilesA file is the first unit a reader opens. Keep it small and focused.Chapter»PackagesA package gives files a home and declares how the project runs.Chapter»Imports and exports
export shares a name. import brings shared names into a file.Chapter»Standard libraryStandard library modules hold common data and helper functions.