Code Organization
Last updated
What is Code Organization?
In pure Kotlin projects, the recommended directory structure follows the package structure with the common root package omitted. For example, if all the code in the project is in the org.example.kotlin package and its subpackages, files with the org.example.kotlin package should be placed directly under the source root, and files in org.example.kotlin.network.socke t should be in the network/socket subdirectory of the source root.
Free resources to learn Code Organization
- Official docsSource code organization
- VideoFull 2025 Kotlin Crash Course For Beginners
Code Organization: common questions
Can I learn Code Organization in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Code Organization in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Code Organization tutorial for beginners?
It is lesson 6 of 153 in the free Kotlin roadmap, in stage 2, Code Organization. If you are new to Kotlin, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.