99-reference/naming-cheatsheet.md
Naming cheatsheet
Naming cheatsheet
This file is a compact guide to naming in Vroq apps.
General rules
- prefer clear, descriptive names
- use the same naming pattern across the app
- avoid vague names like
util,helper,misc,temp, ormanager - name files by their main responsibility
Feature folders
Use business-capability names:
features/filesfeatures/editorfeatures/debugger
Avoid vague folder names:
features/toolsfeatures/stuff
Components
Name components by UI role:
FileCardEditorToolbarStatusBadge
Sections
Name sections by feature-local UI role:
FileListSectionFileDetailsSectionDebuggerSection
Reducers
Name reducers after the feature state slice they own:
filesReducereditorReducerdebuggerReducer
Actions
Use explicit feature-scoped action names:
FILES_ADDFILES_REMOVEEDITOR_SET_CONTENTDEBUGGER_SET_CLIENT
Avoid:
SET_DATAUPDATECHANGE
API clients
Name API files by domain:
fileApi.jseditorApi.jsdebuggerApi.js
Final rule
A reader should be able to guess what a file or function does from its name.