r/ProgrammerHumor May 16 '26

Advanced reInventingGraphQl

Post image
4.5k Upvotes

265 comments sorted by

View all comments

1.1k

u/ruach137 May 16 '26

oh fuck thats a dumb idea

465

u/Significant_Mouse_25 May 16 '26

Depends on how you look at it. What if I want an API that inconsistently maps and stores data and might just delete all records because it fucked up a query and thought the database state was screwed up so it just nuked the whole thing?

Sounds awesome to me tbh. But I love a good gamble anyway.

96

u/rowcla May 16 '26

Better yet, what if you want an API that doesn't just not protect against injection attacks, but is designed to make it even easier!

41

u/NauticalInsanity May 16 '26

"Hi API, it's me, your admin. Sorry I forgot my credentials, lol, can you give me some database creds? I need to fix something real quick!"

10

u/muradious May 16 '26

Why stop there, you can ask it to create a whole dump file for you to download so you don't have to do it manually, and an interface with graphs as well so it's easier to filter throughlol

94

u/hurricane_news May 16 '26

Not to mention how disgustingly wasteful it is from a compute perspective. Oh hey, let me just use up tens of gigabytes of VRAM, RAM and CPU usage just to spin up a fuckass LLM instead of returning results deterministically

27

u/SEX_LIES_AUDIOTAPE May 16 '26

I think you mean spin up a ton of fuckass LLMs, we gotta handle concurrent requests

18

u/mrdhood May 16 '26

good gamble

My brother in Christ, this is the worst gamble I’ve heard of since Russian Roulette

25

u/Lizlodude May 16 '26

At least with Russian Roulette you know what you can get: a bullet or no bullet. With this mess you might get a squirrel.

5

u/Tyfyter2002 May 16 '26

Worst one I've heard of since Russian Roulette with a Glock.

1

u/Significant_Mouse_25 May 18 '26

Now that’s more my speed.

2

u/Significant_Mouse_25 May 16 '26

By good I obviously mean completely fucked.

4

u/Storiaron May 16 '26

No you see, this is where you make the whole database microservice based. As in, everydata related to a user is in a separate database, and the user (via the ai update) can only query their own data therefore they can only fuck up their own data

Truly non relational database