file_naming_conventions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| file_naming_conventions [2026-03-10 07:23 pm] – hcho | file_naming_conventions [2026-05-31 06:21 pm] (current) – [Technical identifiers] hcho | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * Use only lowercase letters (a-z), digits (0-9), hyphens (-), and underscores (_). | * Use only lowercase letters (a-z), digits (0-9), hyphens (-), and underscores (_). | ||
| * Avoid spaces and other special characters. | * Avoid spaces and other special characters. | ||
| - | * Use **hyphens (-)** by default. | + | * Use **hyphens (-)** for named entities intended primarily for human reading and reference. |
| - | * Use **underscores (_)** only for software | + | * Use **underscores (_)** for technical identifiers intended primarily |
| + | |||
| + | ===== Directory names ===== | ||
| + | |||
| + | Directory names use **hyphens**, | ||
| + | |||
| + | Examples: | ||
| + | |||
| + | submission-docs/ | ||
| + | review-response/ | ||
| + | fig-study-area/ | ||
| + | build-scripts/ | ||
| ===== Documentation and manuscripts ===== | ===== Documentation and manuscripts ===== | ||
| Line 27: | Line 38: | ||
| Hyphens improve readability and match conventions commonly used in documentation, | Hyphens improve readability and match conventions commonly used in documentation, | ||
| - | |||
| - | ===== Command-line tools ===== | ||
| - | |||
| - | Command-line interface (CLI) programs use **hyphens** in executable names because they are user-facing commands. | ||
| - | |||
| - | Examples: | ||
| - | |||
| - | flow-direction | ||
| - | longest-flow-path | ||
| - | mesh-builder | ||
| ===== Workflow scripts ===== | ===== Workflow scripts ===== | ||
| Line 50: | Line 51: | ||
| 3-run-model.sh | 3-run-model.sh | ||
| 4-postprocess-results.sh | 4-postprocess-results.sh | ||
| + | |||
| + | ===== Command-line tools ===== | ||
| + | |||
| + | Command-line interface (CLI) programs use **hyphens** in executable names because they are user-facing commands. | ||
| + | |||
| + | Examples: | ||
| + | |||
| + | flow-direction | ||
| + | longest-flow-path | ||
| + | mesh-builder | ||
| ===== Software source code ===== | ===== Software source code ===== | ||
| Line 62: | Line 73: | ||
| grid_utils.h | grid_utils.h | ||
| - | ===== Directory names ===== | + | ===== GIS datasets and technical identifiers |
| - | Directory names use **hyphens**, unless the directory represents a software package that must follow programming naming rules. | + | GIS datasets and technical identifiers |
| Examples: | Examples: | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ===== Generated files ===== | ===== Generated files ===== | ||
file_naming_conventions.1773192188.txt.gz · Last modified: by hcho
