Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 5 min 4 sec ago

Real Good AI

Mon, 03/02/2026 - 12:50pm

Article URL: https://www.realgoodai.org

Comments URL: https://news.ycombinator.com/item?id=47221436

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: Should IDs be strings or numbers in your codebase?

Mon, 03/02/2026 - 11:59am

At work we're debating whether entity IDs should be typed as strings or numbers throughout our stack (API contracts, frontend, etc.).

Database auto-increments happen to be integers, but we never perform arithmetic on IDs – they're opaque identifiers.

My take: IDs are identifiers, not numbers. Typing them as strings makes this explici and makes migrating to UUIDs or other formats painless.

Am I missing a good reason to keep them as numbers?

Comments URL: https://news.ycombinator.com/item?id=47220632

Points: 1

# Comments: 0

Categories: Hacker News

Mad CSS Tournament

Mon, 03/02/2026 - 11:59am

Article URL: https://madcss.com/

Comments URL: https://news.ycombinator.com/item?id=47220628

Points: 1

# Comments: 0

Categories: Hacker News

PBM GPO

Mon, 03/02/2026 - 11:57am

Article URL: https://hntrbrk.com/pbmgpo/

Comments URL: https://news.ycombinator.com/item?id=47220590

Points: 1

# Comments: 0

Categories: Hacker News

Pages