Clean Code Principles
Write code that is easy to read, understand, and maintain.
Meaningful Names
Choose descriptive names:
// ❌ BAD
const d = new Date();
const x = fund.nav;
// ✅ GOOD
const businessDate = new Date();
const netAssetValue = fund.nav;
Small Functions
Keep functions focused and small (< 20 lines ideally).
Single Responsibility
Each class/function should have one reason to change.
DRY (Don't Repeat Yourself)
Extract common logic into reusable functions.
See Coding Standards for detailed guidelines.