News for hackers. Stuff that matters.
Re:The Stupid Programmer Manifesto by xupybd on Thursday June 15, 2023 @08:43AM (#36339659)
How can you store program state on disk like that? You'd need serialization and deserialization. A DB might be easier.
Re:The Stupid Programmer Manifesto by lylejantzi3rd on Thursday June 15, 2023 @08:59AM (#36339813)
> How can you store program state on disk like that? You'd need serialization and deserialization.

You need serialization and deserialization when interacting with a DB, too. You're trusting a library to do most of that for you. This is the difference between a junior engineer and a senior engineer. As a junior engineer, you don't trust your own judgement and use a library. As a senior engineer, you don't trust the library writer's judgement, so you write it yourself.

Re:The Stupid Programmer Manifesto by mjr00 on Thursday June 15, 2023 @09:04AM (#36339873)
> As a junior engineer, you don't trust your own judgement and use a library. As a senior engineer, you don't trust the library writer's judgement, so you write it yourself.

What? No. As a senior engineer you realize that loading data from a database is a solved problem, has nothing to do with the core use cases you're addressing, and would be a massive waste of time to build yourself.

Re:The Stupid Programmer Manifesto by aruss on Thursday June 15, 2023 @09:36AM (#36340279)
Dunning-Kruger begs to differ...
Re:The Stupid Programmer Manifesto by xupybd on Friday June 16, 2023 @12:40AM (#36351348)
* * *
Re:The Stupid Programmer Manifesto by dmingod666 on Thursday June 15, 2023 @09:02AM (#36339854)
You have things like rocksdb, SQLite etc that are simple have serialization-deserialization built-in, so no external app dependencies
Re:The Stupid Programmer Manifesto by p886 on Thursday June 15, 2023 @08:50AM (#36339725)
Maybe a bunch of JSON files on the local file system? Find the files and read the contents as needed.
Re:The Stupid Programmer Manifesto by CM30 on Thursday June 15, 2023 @09:50AM (#36340487)
My first thought was the way early 1990s forum and blog scripts did it, aka the UBB/Movable Type method of storing everything as static text files in a directory somewhere.

That would be really inefficient though. I vaguely recall database driven blog and forum scripts taking over because of how poorly the old solution worked at scale.