GuideMay 23, 20264 min readPlatform standards
Stop calling new Date() in your services
Time and randomness are infrastructure. When every service rolls its own clock port, you get six file paths and three interface names for one concern. The fix is one platform port — and the testability it unlocks.
- Testability
- Hexagonal architecture
- DDD
- TypeScript