You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prefer explicit types over raw dicts -- make invalid states unrepresentable where practical
Prefer typed variants over string literals when the set of valid values is known
Use exhaustive pattern matching (match in Rust) so the type checker can verify all cases are handled
Structure types to enable exhaustive matching when handling variants
Prefer shared internal functions over factory patterns when extracting common logic from hooks or functions -- keep each export explicitly defined for better IDE navigation and readability
Self-Documenting Code
Verbose naming: Variable and function naming should read like documentation
Strategic comments: Only for non-obvious logic or architectural decisions; avoid restating what code shows