News for hackers. Stuff that matters.
Re:PostgreSQL IDE in VS Code by bigfatkitten on Friday May 23, 2025 @11:23PM (#44078517)
Providing access to other services is what APIs are for.

Jeff Bezos famously said[1] that anyone who does otherwise should be fired, and I agree.

[1] https://news.ycombinator.com/item?id=18916406

Re:PostgreSQL IDE in VS Code by int_19h on Saturday May 24, 2025 @03:39AM (#44079489)
SQL is also an API.
Re:PostgreSQL IDE in VS Code by bsaul on Saturday May 24, 2025 @04:47AM (#44079752)
the reason he did that was for business reasons. He wanted to be able to expose any part of the stack as a public service to external customers, and vice versa, to let his internal service compete against the publicly available ones.

But this is only valid when you're trying to build AWS. Not everyone does that.

Relational databases have extensive permission systems for a reason.

Re:PostgreSQL IDE in VS Code by cowsandmilk on Saturday May 24, 2025 @05:18PM (#44083859)
The distributed computing manifesto for Amazon is from 1998. Jeff was not thinking about those things then. And wouldn’t for 5 more years.
Re:PostgreSQL IDE in VS Code by dragonwriter on Saturday May 24, 2025 @06:03PM (#44084073)
> Providing access to other services is what APIs are for.

Yeah, and databases expose extensive APIs with extremely battle-tested security and permissions models for multiple consumers.

Re:PostgreSQL IDE in VS Code by bigfatkitten on Saturday May 24, 2025 @09:56PM (#44084976)
That’s why your bank lets you connect directly to their database to see your transaction history.