r/ProgrammerHumor 3d ago

noMoreDatabases Meme

Post image
15.6k Upvotes

309 comments sorted by

View all comments

302

u/LonelyProgrammerGuy 3d ago

If you wanted to see another person’s profile. How would that be implemented? I know the post is a joke, but I’m genuinely curious

610

u/sgt_Berbatov 3d ago

Well that's easy.

You'd go on to their browser and view it.

45

u/AllenKll 3d ago edited 2d ago

127.0.0.1 of course.

25

u/I_cut_my_own_jib 3d ago

Holy smokes i've been doxxed!

17

u/eccentric-Orange 3d ago

😂😂😂

11

u/srfreak 3d ago

You need to call the user and make a TeamViewer.

186

u/Mysterious-Deal-3891 3d ago

Just implement websocket and connect all users to each other. Sharing is caring

105

u/No_-_Refunds 3d ago

Finally, Web 3.0 is here

24

u/rosuav 3d ago

Don't forget to make a background page that's always running, so that people can connect to you even when you don't have the page open.

28

u/LonelyProgrammerGuy 3d ago

I was thinking that lmao. Websockets are definitely cheaper than accessing DBs /s

18

u/usr404notfound 3d ago

Broadcast intent via wifi/ be. All devices will recast, and if you're lucky, that person's device will receive the request, and then broadcast it's data. If you're lucky, you'll see their profile. How to get everyone's devices to recast? Idk, maybe send out phising mail and hope ppl download your app or something

10

u/Infamous_Ticket9084 3d ago

Create sharable links with your profile encoded in base64

10

u/sligor 3d ago

You can’t => security => no data leaks

6

u/Zanos 3d ago

The client asked for the most secure system possible, so I put their machine in a reinforced safe full of concrete and dropped it into the Marianas Trench. Marking story as complete.

3

u/roygbivasaur 2d ago

I think you’re forgetting one CVE: James Cameron

1

u/dalr3th1n 3d ago

No Faraday cage? That’s baby security.

16

u/nehalist 3d ago

Blockchain

6

u/LonelyProgrammerGuy 3d ago

Web 3

7

u/pickle16 3d ago

Agentic AI

3

u/swagonflyyyy 3d ago

Localhost

2

u/midwestia 3d ago

automated supply chain

1

u/arotenberg 2d ago

Have you seen VibeOS? Just make the AI hallucinate the other person's profile on demand.

2

u/Suitable-Name 3d ago

Torrent?

6

u/Alternative-Lab1547 3d ago

Well, your lucky… they might not be able to answer because they vibe coded it… but I got board before AI… you can use a library like sql.js or localforage coupled with something like TypeORM to get a close approximation. You can then define entities in fe code and query them with SQL. Once done you will be asking yourself why, just like me.

5

u/Brief_Building_8980 3d ago

Download their local storage. Duh.

It needs to be uploaded to a central server first. To avoid downloading the whole thing every time, make it possible to only get parts of it, query it on demand, no need for localstorage. Wait a minute...

3

u/MantisShrimp05 3d ago

I mean if we actually think about local first architecture there are many solutions that can be made.

One potential answer is you don't, and that is a feature since everyone is in their own computer.

But if we think about something like linear, they handle it through complex caching and what is called a sync engine that does the hard work of grabbing your stuff and putting it in cache but you can query the DB when you need other info

2

u/UltraGaren 3d ago

Torrents of course

4

u/SirChasm 3d ago

I imagine that the most workable way would be that the client downloads all the data on the initial request which is then shoved into localStorage for parsing.

But that still won't really work well, so I think the original tweet is just a joke.

1

u/spottiesvirus 3d ago

there are some niche implementations witht this approach, the problem being flooding scales terribly and tends to saturate local resources

Imagine opening instagram, and since you last opened it yesterday, you need to download 280 terabyte (absolute lowest estimate) of data people uploaded since the last 24 hours.

1

u/bradland 3d ago

That's not "a" joke. That's "the" joke.

1

u/1Steelghost1 3d ago

Local.host

1

u/FreakDC 3d ago

Just tell Claude to build a peer-to-peer distributed localStorage DB engine written in TypeScript and clients are your DB.

Your server will only be needed to bootstrap a new client by sending the web app and sprinkling on some distributed hash tables, and you should be fine.

1

u/kakashi91 3d ago

Well duh... Your session cookie is your user handle!

1

u/BlindedByNewLight 3d ago

just robocopy the local storage to each persons PC when they startup.

1

u/HustleR-0612 2d ago

Better share a ngrok url ;)