• I Cast Fist@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    13 days ago

    A colleague is currently checking why the testing environment was uploading files to the production environment. A number of employees’ photos now show Goku

  • Onno (VK6FLAB)@lemmy.radio
    link
    fedilink
    arrow-up
    7
    ·
    13 days ago

    I can absolutely guarantee that you are not the only person to have spent quality time getting to know the intimate backwaters of a codebase tracking down a bug that you introduced whilst tracking down a bug.

    Source: I’ve been writing software for over 40 years.

    • Lightfire228@pawb.social
      link
      fedilink
      arrow-up
      3
      ·
      13 days ago

      I was reading Crafting Interpreters. After adding function calls and stack frames, i tested my implementation with the Fibonacci script at the end of the chapter

      I spent about 2 hours debugging my call stack, and even tested the script in Python

      Only to realize that Fib(3) is indeed 2

      • ByteJunk@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        13 days ago

        I’m ashamed to admit how many times a basic english spell checker in my IDE has saved my bacon.

  • driving_crooner@lemmy.eco.br
    link
    fedilink
    arrow-up
    2
    ·
    13 days ago

    Years ago I was studying webdev and couldn’t make a js code to work. After weeks fighting against it I decided to install another browser and it worked there instantly, but in my regular browser still refuse to work. After a couple of more hours trying ro see why in one browser worked and nor the other found that I had the js blocker active all the time along.

  • Calyhre@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    11 days ago

    I used to troll some colleagues when reviewing their changes by putting [Object object] or NaN in input fields. A non negligible amount of time may have been lost because of these

  • mriswith@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    13 days ago

    Yeah that’s how it goes.

    Just earlier today I spent an embarrassing amount of time trying figure out an issue where the classic “debug print” didn’t give the correct value. And as is often the case, I had forgot to change print to the new test variable.

  • suicidaleggroll@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    13 days ago

    I had something almost identical to this happen to me on Friday. Last year our company moved to a super locked down version of Teams, to the point where I couldn’t even open images that people put in the chat because of security issues, instead the image they posted would be replaced with an error image saying that I wasn’t allowed to open images, blah blah blah. That problem was resolved a long time ago though.

    On Friday I was trying to send an image of some data processing to a colleague, and every time I put it in Teams, it would show up as that stupid error message. I spent a solid hour trying to figure out why that problem was back, was my computer not authenticating with MS properly, etc. Turns out my file browser was sorting by time order instead of reverse time order, and the screenshot at the top of the list from May 2 2024, was a screenshot of the error message that I used to send to IT when they were investigating the problem.

  • Sjmarf@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    13 days ago

    Today I spent multiple hours trying to debug a timezone issue in a codebase. The timezone I was testing with was Etc/GMT+4, which I had assumed was four hours ahead of GMT. Turns out, it’s actually 4 hours behind GMT 🤦‍♂️

    • Lv_InSaNe_vL@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      13 days ago

      GMT+4 would add 4 hours to Greenwich Mean Time though? That’s GET (Georgia Standard Time), so 10am (1000) GMT would be 2pm (1400) GET.

      GMT-4 would be EDT (Eastern Daylight Time), so that 10am (1000) GMT would be 6am (0600) EDT. Also, Georgia the state is in that time zone funny enough haha

      (For the most part. Timezones are really really complicated and you should probably just look up the offset for the specific city/region you want Everytime and use some other package for time stuff lol)

      • Sjmarf@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        13 days ago

        Yeah, you would’ve thought it would work that way. Regrettably, the standard timezone code of Etc/GMT+4 is actually GMT-4. Wikipedia

        • merc@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          13 days ago

          The special area of “Etc” is used for some administrative zones, particularly for “Etc/UTC” which represents Coordinated Universal Time. In order to conform with the POSIX style, those zone names beginning with “Etc/GMT” have their sign reversed from the standard ISO 8601 convention. In the “Etc” area, zones west of GMT have a positive sign and those east have a negative sign in their name (e.g “Etc/GMT-14” is 14 hours ahead of GMT).

          https://en.wikipedia.org/wiki/Tz_database#Area

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      11 days ago

      I cannot express how much I hate that timezones aren’t flipped. 12:00+02:00 should be equal to 14:00+00:00 like a math equation!

  • a14o@feddit.org
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    13 days ago

    Jiminy Cricket, imagine not being able to tell the difference between an error code and an image of an error code, and imagine subsequently, for some reason, not immediately inspecting the HTTP request and response. Sounds like a very real #programming #devops problem.