• ByteJunk@lemmy.world
    link
    fedilink
    arrow-up
    24
    ·
    11 hours ago

    Really curious in what scenarios people would be writing enums with months and weekdays.

    Because short of developing yet another library to handle date and time, everything else is likely a disaster waiting to happen…

    • 6nk06@sh.itjust.works
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      8 hours ago

      A lot of developers are not passionate, or not curious, or don’t know that libraries exist, or all at once (aka stupid). I’ve seen this everywhere.

      • naught101@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        5 hours ago

        The developer who was there when I started my last job believed that libraries should be avoided at all costs. He wrote a CSV reader from scratch in python. It didn’t work in many edge cases. He didn’t like it when I pointed that out. Nor when I showed him that his “better way” in another case was more than 10x slower using a profiler… At least he was using git, but the git history was full of long series of identical commit messages unrelated to code changes, because PyCharm has an option to reuse the previous commit message on a new commit…

        He eventually quit and I spent 3 years refactoring his garbage before we finally had a tech team who could take over (I’m a scientist, with self taught coding skills). Pretty sure even after we had a tech team of 7 if was still a better coder than most, purely because I was interested in how coding works, and trying to understand underlying concepts.

        • Zink@programming.dev
          link
          fedilink
          arrow-up
          4
          ·
          3 hours ago

          because I was interested in how coding works, and trying to understand underlying concepts

          Ah, yes. The secret to being better than most people at at most things. Curiosity and giving a shit.

          • someacnt@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 hour ago

            My impostor syndrome is saying that I suck at everything, I just got curiosity to get over some of it…