News for hackers. Stuff that matters.
Re:Ask HN: Are we overcomplicating software development? by pbreit on Wednesday January 18, 2017 @07:37PM (#13431914)
I'm stunned that you're stunned that people generally don't use text files as data stores.
Re:Ask HN: Are we overcomplicating software development? by zeptomu on Wednesday January 18, 2017 @08:04PM (#13432055)
How do you deal with concurrent write access, do you lock the file?
Re:Ask HN: Are we overcomplicating software development? by crucini on Wednesday January 18, 2017 @09:03PM (#13432346)
He probably uses flock(2)
Re:Ask HN: Are we overcomplicating software development? by zeptomu on Wednesday January 18, 2017 @09:25PM (#13432443)
But isn't that hard to get right? At least if you using something like sqlite you get consistency guarantees.

Consider your process writing to the file and dying during write() - do you recover and repair the file after you reschedule?

Re:Ask HN: Are we overcomplicating software development? by aalbertson on Thursday January 19, 2017 @01:50AM (#13433681)
Ramdisk maybe?