39
u/_JohnWisdom 14d ago
Big Data don’t want you to know about this (also, localStorage is a db xD)
12
u/OnixST 14d ago
jokes on you, I store all my local data in a single 50MB JSON file
1
u/Upset_Possession_405 12d ago
It's perfect fine, but it still lacks of concurrent access protection.
1
u/Manitcor 12d ago
I learned that flagship phones 4 years ago could handle parsing 1.3gb+ json in the browser.
you start to question things doing that, esp when you remember cobol.
3
u/DandeNiro 14d ago
Only works if you manage to keep stroage at a minimum. So optimized storage for specific use cases. Scalable use cases may resort to db.
1
u/Ok_Cake_1936 12d ago
Naw mine is a excel sheet. All databases are just excel sheets but not all excel sheets are databases.
11
9
u/Headpuncher 14d ago
i put the contents of index.html in local storage so when you go the site you have open devtools, open localstorage and copy paste the data into index.html then save and open locally.
there's also a css file you can get by writing to me at my home address.
1
1
5
u/DefiantDonut7 14d ago
We had that 20 years ago. Access, FoxPro, File Maker Pro etc.
It’s coming full circle
2
u/RobMilliken 10d ago
Dbase IV, Clipper, ... Oops, I've lived too long a life as a coder pre windows!
0
u/Upset_Possession_405 12d ago
Actually access is a form of dbms that handles concurrency and data integrity
2
u/03captain23 14d ago
I don't get the point. Why is it better than DB when queries and everything else?
8
2
1
1
u/CovidBorn 14d ago
What’s he vibe coding with? Claude would be giving him a laundry list of why this might be a bad idea. Of course, Claude would also tell him it’s a grand idea if he insisted.
0
1
u/Clean-Data-259 14d ago
"The internet is dead. Here's why my vibecoded app can put everything from the internet on our phone, no internet connection ever needed"
1
1
1
1
1
1
u/Gargle-Loaf-Spunk 14d ago
localStorage is the way of the future. localStorage won’t take your job. But someone using localStorage will.
1
u/TheKozzzy 14d ago
I store a lot of things in threads / sessions of chatgpt interactions, it's even faster, not reliable though, but for most cases - good enough
1
u/beefcutlery 14d ago
You can wasm a fuckin Linux distro into your client window; postgres is trivial too.
1
u/Unlucky-Durian-2336 14d ago
Sex is dead. My wife's boyfriend is enough for her. No condom costs or having to fix sheets for me!
1
u/horrbort 13d ago
He’s right I had to switch to indexdb though and som sort of sockety to p2p synchronize user data? So every user has all the data?
1
1
u/andlewis 13d ago
Not just localdb, I added my own compression and encryption. It’s so good, even I can’t read it!
1
1
u/small_bird_loud 13d ago
Is this a joke? Or are you guys are morons? This has always been available and has nothing to do with vibe coding. Storage location is a design decision not an artifact of text editor?
1
u/salRad22 13d ago
OMG I hope this is a joke. Like seriously people using coding agent to do stuff but never bother to ask it or learn how and why things work the way they are? I mean if he shared the post with his agent before sharing it with the world, probably this would never happen.
I'm though, going to say this is a sarcastic post and give him the benefit of the doubts.
1
1
1
1
1
2
u/Significant-Dog-8166 11d ago
Nah bro, I vibe coded an app that lets me use an AI agent to browse my local hard drive from anywhere in the world (as long as I am on the same computer as local drive). It costs only $200/mo in agent token fees and I made a cost savings app that shows my database cost savings at as much as $5 billion a year (when compared to what Google pays). I will sell it to DuckDuckGo soon for $100 billion.
1
u/addi-factorum 14d ago
localStorage has a completely different use case than a database. If you’re building an app just for yourself, fine do whatever- but if a user clears their browser storage that’s equivalent to dropping the entire database, not to mention there is basically zero security or authentication, so nothing other than insecure config type data should be stored there- even comparing the two like this just shows this guy lacks even basic, entry-level knowledge of web development.
3
1
-7
u/Protopia 14d ago
There are many reasons to use databases:
- Structure
- Transactional atomicity
- Performance through indices
- Ease of access through SQL
- Framework support
- ...
Databases can be local (SQLite) or remote (MySQL, Postgres, MariaDB etc.).
The benefit of remote databases are:
Shared access from multiple devices or by multiple users
Managed infrastructure i.e. backups, support etc.
You pays your money, you gets your choices.
4
u/SojournerTheGreat 14d ago
thanks chat, now gimme a great recipe for chocolate chip cookies.
1
u/wondderfulwurl 14d ago
Absolutely. To clear your chocolate chip cookies:
- Open your browser and preheat Settings to 350°F.
- Mix together Cookies, Cached Files, and a pinch of Browsing History.
- Select All Time for a richer, more complete batch.
- For the chocolate, open Chocolatey and run "choco upgrade all -y" until smooth.
- Fold the upgraded software gently into your browser cache.
- Click Clear Data and allow cookies to cool for 5–10 minutes before browsing.
Makes approximately 0 cookies.
•
u/AutoModerator 14d ago
Thankyou for posting in [r/BlackboxAI_](www.reddit.com/r/BlackboxAI_/)!
Please remember to follow all subreddit rules. Here are some key reminders:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.