• 1 Post
  • 45 Comments
Joined 1 year ago
cake
Cake day: September 11th, 2023

help-circle

  • Yes. Not intentionally of course. But yes.

    I don’t see how your way is any more predictable or consistent than using UTC. What even is “local time”? Are you assuming they haven’t changed timezone since they created the data? Say…DST happened, or they drove over a border…?

    Storing and manipulating in UTC is the most predictable and consistent because it is universal and unchanging. You only need to worry about “local time” at the point of displaying it.


  • So many things would be fucked by a TZ change that it very rarely makes sense to consider it.

    You’re making a calendar app? Fuck it…some folks are gonna get confused…solved by simply emailing your users and telling them to reschedule shit because there’s kind of a big event going on that everyone knows about and has been planning for for years. Hell in all liklihood this is probably easily solved by simply doing a mass migration of events scheduled before the TZ change.

    You’re coding for nuclear weapons? Maybe consider it. But probably not.

    That is to say: there are ways to solve problems without resorting to writing the most complicated bullshit code ever seen. Unless of course you work on my team - in which case you’d be right at home.
















  • You know Dropbox? Google drive? OneDrive? That’s file synchronisation. Files across multiple devices kept in sync by the software provider. Except in the named cases above, all your data is uploaded to their servers. With syncthing there’s no cloud server, just your devices operating over the internet. So you have some backup responsibility to cover.

    Caveat: I’ve never used syncthing and I wrote the above with a total of 10 seconds of reading their website and so it is entirely possible I’m completely wrong about everything and so I emplore you to do your research.




  • I took a promotion without a pay rise on the agreement it would come when pay was reviewed annually. A shit deal, but one I was prepared to accept on the balance of things. I made clear that if they didn’t follow through then I would immediately demote myself and start looking for a new job.

    Pay review came around and it was below inflation. I immediately demoted myself and started looking for a new job. I even requested an internal transfer that was denied (made them too much money where I was).

    I handed in my notice a short while later and everyone was, to my surprise, surprised. I really didn’t understand why the shock…until I learned in due course that most people don’t follow through.

    Funnier still, I returned 6 months later (due to a quirk in contracts) at double the salary in the dept I requested a transfer to.

    Anyway my point is - do what is to your benefit, always. Companies can play games - as can you.