Is Temporal really better than Date, or just different pain points?
Been seeing this take everywhere lately and honestly... I'm not convinced the tradeoff is worth it for most projects.
Yes, Date has issues - timezones are a nightmare, mutability causes bugs, the API is confusing. We all know this. But Temporal's solution is to basically create an entirely new mental model for time handling. Which means:
- Your whole team needs to learn it (good luck with contractors)
- Legacy code stays messy anyway
- Library support is still spotty outside the main ecosystems
- You're adding significant bundle size for what... 5% of your codebase that actually deals with complex time operations?
Maybe I'm just tired of chasing the "new better way" every few years. Sometimes the devil you know is easier to work with than rewriting your validation layer, refactoring date pickers, and explaining to stakeholders why we need extra sprint time for a refactor.
What are people actually shipping with Temporal that couldn't be done with date-fns or Luxon?
Honestly I've been going back and forth on this too. I tried switching one project over and yeah the bundle size thing hit me immediately - was like 70kb just for date handling when the old setup was maybe 15kb with date-fns. What really got me though was debugging... when something goes wrong with Temporal types it's this whole investigation into which temporal object you're dealing with, whereas Date bugs are usually pretty obvious even if annoying. I get that it's "better" architecturally but sometimes the devil you know beats learning a whole new system that half your dependencies don't even support yet.