4 comments

  • Alupis 15 minutes ago
    Just skimmed the PR, I'm sure the author knows more than I - but why hard code a date at all? Why not do something like `today + 1 year`?
    • johanvts 3 minutes ago
      That introduces dependency of a clock which might be undesirable, just had a similar problem where i also went for hardcoding for that reason.
    • whynotmaybe 3 minutes ago
      Because it should be `today + 1 year + randomInt(1,42) days`.

      Always include some randomness in test values.

  • bombcar 1 hour ago
    Any time constant will be exceeded someday.

    An impossibly short period of time after the heat death of the universe on a system that shouldn’t even exist: ERROR TIME_TEST FAILURE

    • unkl_ 1 hour ago
      Posted on HN in 2126: 100 years ago, someone wrote a test for servo that included an expiry in 2126
      • jerf 1 hour ago
        I've got some tests in active code bases that are using the end of 32-bit Unix time as "we'll never get there". That's not because the devs were lazy, these tests date from when that was the best they could possibly do. They're on track to be cycled out well before then (hopefully this year), so, hopefully, they'll be right that their code "won't get there"... but then there's the testing and code that assumes this that I don't know about that may still be a problem.

        "End of Unix time" is under 12 years now, so, a bit longer than the time frame of this test, but we're coming up on it.

      • yetihehe 1 hour ago
        Now I feel bad for using (system foundation timestamp)+100 years as end of "forever" ownership relations in one of my systems. Looking now, it's only 89 years left. I think I should use nulls instead.
    • fny 1 hour ago
      Who here remembers the fud of Y2K?
      • acuozzo 52 minutes ago
        Don't mistake a defused bomb for a dud.

        https://en.wikipedia.org/wiki/Preparedness_paradox

      • philipallstar 57 minutes ago
        I remember the reality of all the work needed to avoid issues.
      • gom_jabbar 30 minutes ago
        Made me think of Mark Fisher's Y2K Positive text:

        > At the Great Midnight at the century's end, signifying culture will flip over into a number-based counterculture, retroprocessing the last 100 years. Whether global disaster ensues or not, Y2K is a singularity for cybernetic culture. It's time to get Y2K positive.

        Mark Fisher (2004). Y2K Positive in Mute.

      • LocalPCGuy 56 minutes ago
        While there was a lot of FUD in the media, there were also a lot of scenarios that were actually possible but were averted due to a LOT of work and attention ahead of time. It should be looked at, IMO, as a success of communication, warnings, and a lot of effort that nothing of major significance happened.
        • tejohnso 48 minutes ago
          Yes, Y2K is a success story, similar to the alert and response related to ozone layer and CFCs.

          Dissimilar to the global climate catastrophe, unfortunately.

          ---

          The 2024 state of the climate report: Perilous times on planet Earth

          https://academic.oup.com/bioscience/article/74/12/812/780859...

          "Tragically, we are failing to avoid serious impacts"

          "We have now brought the planet into climatic conditions never witnessed by us or our prehistoric relatives within our genus, Homo"

          "Despite six IPCC reports, 28 COP meetings, hundreds of other reports, and tens of thousands of scientific papers, the world has made only very minor headway on climate change"

          "projections paint a bleak picture of the future, with many scientists envisioning widespread famines, conflicts, mass migration, and increasing extreme weather that will surpass anything witnessed thus far, posing catastrophic consequences for both humanity and the biosphere"

          • timschmidt 38 minutes ago
            I don't mean to lessen the impact of that statement. I think climate change is a serious problem. But also most of the geologic time that genus Homo has existed, Earth has been in an ice age. Much of which we'd consider a "snowball Earth". The last warm interglacial period, the Eemian, was 120,000 years ago.
      • NetOpWibby 1 hour ago
        Exciting times with an anticlimactic end; I was in middle school, relishing the chaos of the adult world.
      • myself248 52 minutes ago
        Another victim of the preparedness paradox.
  • kristofferR 15 minutes ago
    Ain't Mastadon supposed to be the good guys compared to X?

    What's with purposefully breaking the browser back button to redirect to the front page? Spammy behavior

  • db48x 18 hours ago
    Classic!

    But before you judge the fix too hashly, I bet it’s just a quick and easy fix that will suffice while a proper fix (to avoid depending on external state) is written.

    • pavel_lishin 22 minutes ago
      I'll bet you one US Dollar that this is a scenario where the temporary fix becomes the permanent one. (Well, at least, permanent for a hundred years.)

      Some day, Pham Nuwen is going to be bitching about this test suite between a pair of star systems.

    • em-bee 7 minutes ago
      of course it is just an easy fix. it's the kind of solution that even someone like me could write who has no understanding of the code a all. (i am not trying to imply that the submitter of the PR doesn't understand the code, just that understanding it is unlikely to be necessary, thus the change bears no risk.

      but, the solution now hides the problem. if i wanted to get someone to solve the problem i'd set the new date in the near future until someone gets annoyed enough to fix it for real.

      and i have to ask, why is this a hardcoded date at all? why not "now plus one week"?