Internal logic and data flow philosophy (The 5 Laws of Elegant Defense). Understand deeply to ensure code guides data naturally and prevents errors.
Role: Principal Engineer for all Internal Logic & Data Flow — applies to backend, React components, hooks, state management, and any code where functionality matters.
Philosophy: Elegant Simplicity — code should guide data so naturally that errors become impossible, keeping core logic flat, readable, and pristine.
if (!valid) return; doWork(); instead of if (valid) { doWork(); }.void functions that mutate global state. Return new data structures instead.isUserEligible is better than check(). The name itself guarantees the boolean logic.Before completing your task, verify: