2 ms·
Thanks. I think your napkin estimates work out and tell me this is trivially possible for free. I’m not sure I need a database though. Just a single timestamp
by Waterluvian 5y ago
Thanks. I think your napkin estimates work out and tell me this is trivially possible for free.
I’m not sure I need a database though. Just a single timestamp in memory with a file to back it up and a “just assume the button was pushed” if that ever gets corrupted somehow.
Of course I didn’t specify how rigorous the solution needed to be: not very.
I want a website where if the timer ever hits 0 I donate $100 to a charity. And it’s called “This is why we can’t have nice things.”
- hedora 5y agoThe file thing with cache you describe is just a little database. An off the shelf one is probably easier. (If it's just a hobby project, then writing a little database server could be fun. Go for it.)