🏒 Lucian Marin I like shelve in Python and I also like Notes app, but I hate iCloud. So I want to create a plain text notes app for myself that's using a single file instead of writing every file to the disk.
Login or register your account to reply
Mark Dain A few formats are zip files under the hood so this happens fairly often. There's a nice advantage to keeping your data in a single, ready-to-go file, but it does make seeking/searching more expensive. You now have to parse or unpack. I don't really see a lot of advantages there.
5y, 44w reply
Nkrs QBASIC stored all code in one file. When you edited the file, the IDE would let you pick a function and then it would only display that function on the screen. The files would end up being long; you wouldn't know how long it really is, because you would always be looking at one of its many pieces, without having to go through the rest of the program. Here's a demo: youtube.com/watch?...
5y, 44w reply
Haaktu I'm using TiddlyWiki. Funny since it's on HN's front page just a few moments ago.
5y, 44w reply
Paul Webb Huh, that's an interesting concept. Just a single file...hmm.
5y, 44w 1 reply
🏒 Lucian Marin It can be done with SQLite or JSON, but with shelve you don't have to write SQL queries or parse JSON. It's not exactly a new concept. Also, in PHP you can use serialize($array) and unserialize($array) which is similar to shelve.
5y, 44w reply