1010 B
1010 B
Claude Code Instructions
Coding Style
- Minimize comments. Code should be self-explanatory. Only add comments when the logic is truly non-obvious.
- No blank lines inside methods. Keep method bodies compact without empty line separators.
- Never use single-letter abbreviations in lambdas. Use descriptive names like
entry,text,value,event, etc. - Use types and functions from
@opendaw/lib-stdinstead of inline checks:- Use
Optional<T>instead ofT | undefined - Use
Nullable<T>instead ofT | null - Use
isDefined(value)instead ofvalue !== undefinedorvalue !== null - Use
!isDefined(value)instead ofvalue === undefinedorvalue === null - Use
isAbsent(value)instead ofvalue === undefined || value === null - Never use falsy checks like
!valueorif (!value)for null/undefined checks - always use!isDefined(value)orisAbsent(value) - Never write
| nullor| undefinedinline - always use the lib-std types.
- Use