• 0 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: June 30th, 2023

help-circle
  • orbitz@lemmy.ca
    cake
    toProgrammer Humor@lemmy.mlWorst is UTC vs GMT
    link
    fedilink
    arrow-up
    11
    arrow-down
    2
    ·
    11 hours ago

    Not if the place doesn’t do daylight savings time, and not all places in a timezone will do that (least in North America) so you need extra code if they do or do not. It becomes a pain after awhile when you do it in multiple projects. Technically one extra setting but it’s still a pain to make sure it’s handle properly in all cases, especially when the previous programmer decided to handle it for each case individually, but that’s a different issue.

    Also when you deal with the times, say in .Net you gotta make sure it’s the proper kind of date otherwise it decides it’s a local system date and will change it to system local when run. Sure it’s all handled but there are many easy mistakes to make when working with time.

    I probably didn’t even get to the real reason, I sort of picked this up on my own.









  • orbitz@lemmy.ca
    cake
    toProgrammer Humor@programming.devC++
    link
    fedilink
    arrow-up
    15
    ·
    21 days ago

    First year programming in the late 90s … segmentation fault? I put printfs everywhere. Heh. You’d still get faults before the prints happened, such a pain to debug while learning. Though we weren’t really taught your point of the comment at the time.

    Least that was my experience on an AIX system not sure if that was general or not, the crash before a print I mean.




  • The lady in the article said she might change her mind about voting for him if he was convicted of election interference. Like he just was, mean not exactly but the reason it was a felony was due to the election campaign. Least if I understood correctly, otherwise they’d have been misdemeanors. Or something like that anyways.