Meaningful variable names, file names, folder names. Use abbreviations for words over ten characters. Abbreviations must be over three characters.
update-btn (refresh button), device-list, user-profile-settings (profile = abbreviation)btn (too vague), d1 (meaningless), temp (unclear), us (abbreviation too short)Use hyphens (-) for multi-word names.
Never use try-catch. Let errors crash.
GUI components must split into three files:
.jsx: Layout only (no logic, no styles).js: Logic only (functions, state, business logic).scss: Styles only (no logic, no JSX)Never write logic or inline styles in .jsx files.
Use the least code to implement functionality.
Do not add any console.log statements in production code.
Do not create script files unnecessarily. If you can call PowerShell directly, use PowerShell instead of creating a separate script file.