separate-file principle
nounUK /ˈsɛpərət faɪl ˈprɪnsəpəl/
US /ˈsɛpəreɪt faɪl ˈprɪnsəpəl/
A rule that says each thing should be kept in its own file.
The separate-file principle keeps each program's code in its own file so it is easy to find.
OTHER MEANINGS
2. A coding habit where every class or module gets its own file.
Following the separate-file principle, she put each class in a separate file.
3. A way to keep records tidy by storing each record in its own document.
The office uses the separate-file principle, so every client has a single folder.
4. A design guideline that avoids mixing unrelated content in one file.
The separate-file principle stopped them from cramming all the styles into one big file.