01-house-style/02-naming.md
Naming conventions
Naming conventions
Consistent naming makes Vroq apps easier to understand, edit, and debug. ChatGPT should follow these rules when creating or modifying code.
General rules
- Prefer clear, descriptive names over short or clever ones
- Use the same naming pattern everywhere in the app
- Avoid vague names like
util,helper,misc,temp, ormanager - File names should reflect their main responsibility
Feature names
Feature folders should represent a business capability or UI area.
Examples:
features/debuggerfeatures/filesfeatures/editor
Avoid:
features/toolsfeatures/stuff
Component names
Components should describe the UI role.
Examples:
FileListDebuggerPanelToolbar
Avoid names that describe implementation instead of purpose.
Section names
Sections are feature-local UI fragments.
Examples:
DebuggerSectionFileDetailsSection
Sections often read from the store and dispatch actions.
Reducer names
Reducers should clearly match the state slice they own.
Examples:
debuggerReducerfilesReducer
Action names
Actions should be explicit and feature-scoped.
Examples:
FILES_ADDDEBUGGER_SET_CLIENT
Avoid generic actions like SET_DATA.
API helpers
API helper files should describe the API domain.
Examples:
fileApi.jsdebuggerApi.js
Final rule
A reader should be able to guess what a file or function does just by its name.