Remix.run Logo
▲ kccqzy 5 hours ago

Tell Congress to change the rules again soon, lest a new generation of programmers become complacent and hardcode transitions again. Many current junior programmers don’t remember the 2000s rule change.

I can even hear this conversation happening: what? I need to open this America/Los_Angeles file just to convert a timestamp? What pretentious overengineering! I want a single-file executable with zero dependencies. Let me hard code the rules.

▲mook 5 hours ago | parent | next [-]

There's a bunch of changes recently / coming up in Canada, so that might be good enough. I've started occasionally reading the tzdb mailing list archives for fun because of that.

▲throw0101c 5 hours ago | parent | prev [-]

> I want a single-file executable with zero dependencies.

Isn't this what Go programs are to a certain extent?

▲kccqzy 4 hours ago | parent [-]

Yes. Get ready for Go programs produced by inexperienced programmers to do DST conversion incorrectly after the next rule change.

(Actually Go allows you to embed the tz database instead of forcing you to hardcode, so I hope this issue won’t be very widespread.)