this post was submitted on 03 Apr 2024
55 points (98.2% liked)

Programmer Humor

19315 readers
73 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Malix@sopuli.xyz 13 points 6 months ago (7 children)

I'm ok with timezones, but the guy who invented daylight savings time I'd slap to all the way to the sun

[–] Scoopta@programming.dev 4 points 6 months ago (3 children)

From a development perspective it certainly sounds easier to have one global timezone with DST than a bunch of smaller ones without it. Would that make sense in reality? Probably not but I definitely think timezones take more work to compensate for properly.

[–] hikaru755@lemmy.world 4 points 6 months ago* (last edited 6 months ago)

Not really. Timezones, at their core (so without DST or any other special rules), are just a constant offset that you can very easily translate back and forth between, that's trivial as long as you remember to do it. Having lots of them doesn't really make anything harder, as long as you can look them up somewhere. DST, leap seconds, etc., make shit complicated, because they bend, break, or overlap a single timeline to the point where suddenly you have points in time that happen twice, or that never happen, or where time runs faster or slower for a bit. That is incredibly hard to deal with consistently, much more so that just switching a simple offset you're operating within.

[–] fidodo@lemmy.world 3 points 6 months ago (4 children)

What matters is consistency and our time system has tons of crazy inconsistent shit in our. Everyone knows about leap years, but do you know about leap seconds? Imagine trying to write a function to convert unix time to a current date and suddenly all your times are a second off.

Just look at this insane bullshit nonsense. The added complexity of time zones and daylight saving time is nothing compared to simply supporting our time system.

[–] brbposting@sh.itjust.works 1 points 6 months ago

Incredible list, the scale.

The software will never run on a space ship that is orbiting a black hole.

hmm
A little aspirational?

load more comments (3 replies)
[–] alcoholicorn@lemmy.ml 1 points 6 months ago* (last edited 6 months ago) (1 children)

Lets just have 2 timezones, Chinese time and EST w/ permanent DST. The most populated timezones for Eurasia and the americas, and they're both 12 hours apart, so nobody has to do timezone math, just swich AM and PM.

[–] Scoopta@programming.dev 1 points 6 months ago (1 children)

There was actually a really interesting idea I heard to have no time zones. And I actually think it could be a good idea. It'll never happen because people would need to re-learn time but if it was always the same time everywhere it would make scheduling and business so much easier. No one would need to convert between different zones or be late because of an incorrect conversion. The downside is that times which are conventionally morning or evening etc, would no longer would be so people would have to get used to time just being a construct for scheduling and not a representation of the natural day/night cycle...but it actually doesn't sound like a half bad idea.

[–] ricecake@sh.itjust.works 3 points 6 months ago (1 children)

Problem you run into is the areas where we need to tie things to solar days across an area.
You end up with places having to regulate that school starts at 22:00, and gets out 05:00 the next day.
Businesses close for the night at 06:00 and open bright and early later that day at 22:00.
You have places where one calendar day has two different business days in it, so the annoyances faced by people who work overnight shifts spreads to everyone, and worse gets spread to financial calendars, billing systems and the works.

It's not better.

[–] Scoopta@programming.dev 1 points 6 months ago (1 children)
[–] ricecake@sh.itjust.works 2 points 6 months ago

Time is an air bubble trapped under a screen protector. It's annoying, and you can push it around to try to keep it out of the way, but you can never really fix it.
There's just too many inherently contradictory requirements for us to end up with a "good" system, and we just need to settle for good enough.

My dream is that we stop changing things. Whatever we have in time zone database today is what we stick with going forwards. No more dst shifts, no more tweaks to the zones, no more weird offsets and shifts, because we don't get to stop dealing with the old layout when we change, we just add a new one that we think is better.

For the most part, dealing with this stuff is a solved, shitty problem. It's when we change the rules that problems come up. Worse when we change them retroactively. (Territory disputes between nations have been resolved with the conclusion that land was actually in a different time zone in the past because it was actually in another country. Not a problem usually, unless there's a major stock exchange in an island that was transferred between nations and retroactively changing what time it was affects what laws were valid at the time certain transactions took place.

[–] usualsuspect191@lemmy.ca 2 points 6 months ago (7 children)

I love DST! I just think ever switching out of it is where the mistake lies

load more comments (7 replies)
[–] CosmicCleric@lemmy.world 2 points 6 months ago

Love me some early evening daylight though. Nice warm but not hot cruise/drive with the windows and the top down on the car.

[–] northendtrooper@lemmy.ca 1 points 6 months ago (5 children)

IIRC daylight savings was created way back when electricity really didn't exist so it allowed the farmers more daylight to harvest their crops.

Now with that said there is more technology in today's farming equipment so DST shouldn't really exist anymore.

[–] zerofk@lemm.ee 1 points 6 months ago (1 children)

That’s a misconception. Farmers lobbied heavily against DST. Their work does not abide by the clock; they milk when cows need milking, and they harvest when there’s enough light, no matter what some clock says.

In Europe, DST as we know it now was first introduced by Germany during WW1 to preserve coal, then abandoned after the war, and widely adopted again in the 70s. In the US it was established federally in the 60s.

This is all glossing over a lot of regional differences and older history. But yeah, US farmers were very much against the idea.

[–] Gork@lemm.ee 1 points 6 months ago* (last edited 6 months ago)

I blame Big Ice Cream™.

Those ice cream trucks get an additional hour of daylight to hawk their goods before the children are recalled back inside for supper.

[–] snooggums@midwest.social 1 points 6 months ago* (last edited 6 months ago) (7 children)

So, this is wrong on so many levels. First of all, DST had nothing to do with farmers, it was to save energy usage in the summer as people were doing more things when the evenings were warmer.

IIRC daylight savings was created way back when electricity really didn’t exist so it allowed the farmers more daylight to harvest their crops.

DST does not increase the amount of daylight on any specific day of the year, it just shifts it later in the day so that people in 8-5 jobs can do more things after work. Farmers don't work 8-5, they work as needed so if the crops need harvesting they will get harvested based on the weather.

Now with that said there is more technology in today’s farming equipment so DST shouldn’t really exist anymore.

Nowadays farmers have lots of lights and can harvest after the sun goes down, but that has nothing to do with why DST shouldn't exist. DST shouldn't exist because it doesn't save energy due to any populated place having their lights on all night and the actual changing of time leading to negative outcomes like deaths from accidents with no benefits.

Sure, the sun will come up earlier and set later in the summer if we get rid of DST, but the only reason for the time change in the first place was the standard working hours being longer after noon than before.

[–] someguy3@lemmy.world 1 points 6 months ago* (last edited 6 months ago) (6 children)

And you'd think *if anything farmers would want more sunlight in the morning when it's cooler.

Edited because people want to take this the wrong way. As in this another reason that DST and farmers makes no sense.

load more comments (6 replies)
[–] azertyfun@lemmy.blahaj.zone 1 points 6 months ago (1 children)

and set earlier in the summer*

I hate it. I fucking hate it. With every fiber of my being. I spend every winter counting the days until the sun stops setting before I stop working. Our entire lives are scheduled so we are inside under neon light from 9-6, why are we trying to maximize how much of that is during daytime?

On the day that we go back to permanent ST I will turn to hard drugs to make up for the dopamine deficiency. No joke very few things in my life fill me with more dread than having to suffer early evenings for the rest of my life.

[–] snooggums@midwest.social 1 points 6 months ago (1 children)

Maybe, and hear me out, the problem is that 9 to 6 is the problem, since 2/3 of that time is after noon. Instead of changing reality to appease business, business, work hours could be changed to 8 to 4 with four before and four after which is both more light in the evening than DST and a shorter workday because people are more productive than they ever have been.

But I guess you would rather let business practices determine when noon is for everyone instead of the sun.

[–] azertyfun@lemmy.blahaj.zone 1 points 6 months ago (1 children)

Business hours is no more or less of a social construct than DST or the 24 hour clock.

The only difference is that we have a shot at making everyone agree on a timezone shift or permanent DST, but absolutely NO SHOT at getting every business to switch to an 8-4 schedule. None. It'd be a nice sentiment. But it's not happening, and I don't care what the number says on the clock when I leave work as long as it's sunny outside.

Why is it so important that the sun reaches its zenith at noon anyway? Do you often get confused while looking at your antique sundial?

load more comments (1 replies)
[–] ReluctantMuskrat@lemmy.world 1 points 6 months ago

My understanding is DST did still save appreciable energy until we replaced incandescent lights with fluorescent and leds. Longer daylight in the evening when people are awake and less in the early morning when people are asleep means lights aren't being used as much. The average light bulb used to consume 60 watts or more and also let off significant undesirable heat, so with a house full of lights DST really did cut back energy usage. Now though with led lights low consumption and virtually no heat, it's not nearly as significant.

load more comments (4 replies)
[–] Bassman1805@lemmy.world 1 points 6 months ago

It's not about the crops, farmers work by the sun, not by the clock.

It was able conserving candles and oil, for lighting rooms.

[–] schnurrito@discuss.tchncs.de 1 points 6 months ago

That is literally the opposite of true.

[–] someguy3@lemmy.world 1 points 6 months ago

It was some worker who wanted more time after work to catch butterflys.

[–] umbrella@lemmy.ml 1 points 6 months ago

and id put him back and lovingly nurse him back to health. big hero.

[–] scottywh@lemmy.world 1 points 6 months ago (3 children)

Switching sucks but DST is better than Standard Time.

[–] snooggums@midwest.social 2 points 6 months ago* (last edited 6 months ago) (2 children)

Which part of the year is DST and which part is Standard Time?

I know, but it seems like half the people that say they prefer DST have it backwards.

[–] scottywh@lemmy.world 3 points 6 months ago (1 children)

It's easy, the good part is DST (which is what we're currently in - Spring through Fall in the northern hemisphere).

[–] Aux@lemmy.world 1 points 6 months ago (2 children)

It's only good from spring to fall. Come winter and it's a permanent depression.

[–] scottywh@lemmy.world 4 points 6 months ago (6 children)

Standard Time during that period is what's depressing.

[–] jdeath@lemm.ee 1 points 6 months ago

yeah it's literally ass-backwards. how can anyone support DST as it stands is beyond me

load more comments (5 replies)
[–] Incandemon@lemmy.ca 2 points 6 months ago (2 children)

Strong disagree, under DST I get to experience some sunlight in then evenings. Under Standard time I get to watch the sun come up through the window and set through the window.

load more comments (2 replies)
[–] KillingTimeItself@lemmy.dbzer0.com 1 points 6 months ago (1 children)

i still dont even understand what DST even is, as far as i care because i don't is that DST just means we change the time, because god forbid the time be a little funky.

[–] snooggums@midwest.social 1 points 6 months ago (1 children)

DST is shifting the sunlight later in the day during the summer.

too bad there isn't like a standard convention that establishes when something would take effect, how it would take effect, and at what interval.

No, daylight savings time is definitely what we're going to call it.

[–] mwguy@infosec.pub 1 points 6 months ago

DST vsm Standard time literally doesn't matter. It's the switching between the two that kills people.

[–] sacredfire@programming.dev 1 points 6 months ago

The real problem is that across the globe there is like 50 different implementations of it. Some places have a fucking half hour, or some goofy shit. Really fun handling time zones with that sprinkled on top.

[–] Vince@lemmy.world 1 points 6 months ago

Isn't that Benjamin Franklin or did West Wing lie to me?