toldi.eu Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmings.world to Programmer Humor@programming.dev · 1 year ago

Days since last timezone issue

lemmy.ml

message-square
12
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
459

Days since last timezone issue

lemmy.ml

cm0002@lemmings.world to Programmer Humor@programming.dev · 1 year ago
message-square
12
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • moseschrute@lemmy.world
    link
    fedilink
    arrow-up
    35
    ·
    1 year ago

    You think timezones are annoying? Try handling metrics that use imperial and metric, need to be rounded to different precisions across a large system, and are sometimes recorded in a different unit than it’s viewed in. Slap some floating point error on there, and you got yourself a fun time.

    I spent all day working on bug where backend was categorizing 19.9999 as falling between <20, but frontend was rounding it to 20 and categorizing it as >=20.

    • FunctionallyLiterate@lemmy.ca
      link
      fedilink
      arrow-up
      15
      ·
      1 year ago

      Hopefully you’re not working for NASA.

      • oni ᓚᘏᗢ@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        I remember talking about ths in early semesters of Software Engineer career in college

    • azi@mander.xyz
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      hey at least once your code is correct it’ll stay that way. You won’t have to deal with things like old and new versions of your program disagreeing on what time it was in Iran for the last month and a half of 1978

    • sznowicki@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      But have you ever try making a calendar?

      https://zachholman.com/talk/utc-is-enough-for-everyone-right

      • _hovi_@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Thanks, interesting read

    • applebusch (she/her)@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      This is why, in any competent software dealing with physics in any way, it is always metric under the hood. Someone wants to see a quantity in some stupid freedom units? Fine sure convert it for them, but internally everything should be metric. Physics is hard enough, there’s no reason to make it worse with an inconsistent unit system with built in footguns somehow.

  • Whelks_chance@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Tom Scott’s video is about to do the rounds again then

  • [object Object]@lemmy.ca
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Reading the pytz time zone database is an insane and engaging read.

    Nobody is ever going to solve that problem.

  • Cevilia (she/they/…)@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Days since last timezone issue: -0.0416666666667

  • AmazingAwesomator@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    underflow

  • locuester@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Would be better as 4,294,967,295 instead of -1.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 423 users / day
  • 3.11K users / week
  • 3.71K users / month
  • 3.74K users / 6 months
  • 1 local subscriber
  • 34K subscribers
  • 1.93K Posts
  • 63K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.21
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org