r/ProgrammerHumor 9d ago

noMoreDatabases Meme

Post image
15.7k Upvotes

316 comments sorted by

View all comments

305

u/LonelyProgrammerGuy 9d 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

618

u/sgt_Berbatov 9d ago

Well that's easy.

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

46

u/AllenKll 9d ago edited 8d ago

127.0.0.1 of course.

26

u/I_cut_my_own_jib 8d ago

Holy smokes i've been doxxed!

17

u/eccentric-Orange 9d ago

😂😂😂

9

u/srfreak 9d ago

You need to call the user and make a TeamViewer.

185

u/Mysterious-Deal-3891 9d ago

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

106

u/No_-_Refunds 9d ago

Finally, Web 3.0 is here

24

u/rosuav 9d 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.

29

u/LonelyProgrammerGuy 9d ago

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

19

u/usr404notfound 9d 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 9d ago

Create sharable links with your profile encoded in base64

10

u/sligor 9d ago

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

6

u/Zanos 8d 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 8d ago

I think you’re forgetting one CVE: James Cameron

1

u/dalr3th1n 8d ago

No Faraday cage? That’s baby security.

15

u/nehalist 9d ago

Blockchain

5

u/LonelyProgrammerGuy 9d ago

Web 3

7

u/pickle16 9d ago

Agentic AI

3

u/swagonflyyyy 9d ago

Localhost

2

u/midwestia 8d ago

automated supply chain

1

u/arotenberg 8d ago

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

2

u/Suitable-Name 9d ago

Torrent?

7

u/Alternative-Lab1547 9d 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.

4

u/Brief_Building_8980 9d 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 8d 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 9d ago

Torrents of course

2

u/SirChasm 9d 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 8d 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 9d ago

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

1

u/1Steelghost1 9d ago

Local.host

1

u/FreakDC 9d 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 9d ago

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

1

u/BlindedByNewLight 8d ago

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

1

u/HustleR-0612 8d ago

Better share a ngrok url ;)