• undefinedValue@programming.dev
        link
        fedilink
        arrow-up
        36
        arrow-down
        4
        ·
        8 months ago

        Sadly? Master branch never implied the existence of a slave branch. It was one of the dumbest pieces of woke incursion into tech.

        • chonglibloodsport@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          8 months ago

          Yes exactly. It’s a reference to the recording industry’s practice of calling the final version of an album the “master” which gets sent for duplication.

          • Zink@programming.dev
            link
            fedilink
            arrow-up
            0
            ·
            8 months ago

            In alignment with this, we should not replace the master branch with the main branch, we should replace it with the gold branch.

            Every time a PR gets approval and it’s time to merge, I could declare that the code has “gone gold” and I am not doing that right now!

            • ramjambamalam@lemmy.ca
              link
              fedilink
              arrow-up
              1
              ·
              8 months ago

              Merged -> gone gold

              Deployed -> gone platinum

              Gone a week without crashing production -> triple platinum

        • tyler@programming.dev
          link
          fedilink
          arrow-up
          3
          arrow-down
          3
          ·
          8 months ago

          Yeah agreed. Just another piece of white devs acting like they knew better for everyone.

  • ramjambamalam@lemmy.ca
    link
    fedilink
    arrow-up
    52
    ·
    edit-2
    8 months ago
    • Push directly to master, not main
    • No command line args, just change the global const and recompile
    • No env vars either
    • Port numbers only go up to 5280, the number of feet in a mile
    • All auth is just a password; tokens are minority developers, not auth, and usernames are identity politics
    • No hashes – it’s the gateway drug to fentanyl
    • No imports. INTERNAL DEVELOPERS FIRST
    • Exceptions are now illegal and therefore won’t occur, so no need to check for them
    • SOAP/XML APIs only
    • No support for external machines. If it’s good enough for my machine, it’s good enough for yours.
    • Rikudou_Sage@lemmings.world
      link
      fedilink
      arrow-up
      11
      ·
      8 months ago

      Exceptions are now illegal and therefore won’t occur, so no need to check for them

      Ah, I see you’ve met C++ developers.

    • excral@feddit.org
      link
      fedilink
      arrow-up
      6
      ·
      8 months ago

      No command line args, just change the global const and recompile

      Nah, don’t use global variables, magic values everywhere. And don’t use const whatsoever, we need to move fast and break things, we can’t let something immutable stop us

  • db0@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    8 months ago

    NGL, this kind of form of putting the decisions the monkey-in-charge is making in a way experts in a field will understand, is a very good way to showcase the absurdity.

  • notabot@lemm.ee
    link
    fedilink
    arrow-up
    7
    ·
    8 months ago

    I started reading that from the top and got increasingly angry on the way down. That creature is a monster.

    • SamboT@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      8 months ago

      Im unfamiliar with this as well. If you are allocating memory for a stack, why does it matter which direction it populates data? Is this just a convention?

  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    2
    ·
    8 months ago

    Arrays not starting at 1 bother me. I think the entrenched 0-based index is more important than any major push to use 1 instead, but if I could go back in time and change it I would.

    • Overshoot2648@lemm.ee
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      8 months ago

      It really doesn’t make sense to start at 1 as the value is really the distance from the start and would screw up other parts of indexing and counters.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        Yeah, but if we went back and time and changed it then there wouldn’t be other stuff relying on it being 0-based.

        • Username@feddit.org
          link
          fedilink
          arrow-up
          3
          ·
          8 months ago

          It was not randomly decided. Even before arrays as a language concept existed, you would just store objects in continuous memory.

          To access you would do $addr+0, $addr+1 etc. The index had to be zero-based or you would simply waste the first address.

          Then in languages like C that just got a little bit of syntactic sugar where the ‘[]’ operator is a shorthand for that offset. An array is still just a memory address (i.e. a pointer).

          • JackbyDev@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            8 months ago

            I know. But in the alternate reality where we’d been using 1-based indices forever you’d be telling me how useful it is that the first element is “1” instead of zero and I’d be saying there are some benefits to using zero based index because it’s more like an offset than an index.

            • Hawk@lemmynsfw.com
              link
              fedilink
              arrow-up
              2
              ·
              8 months ago

              A lot of mathematical languages start from 1: R, Julia, Mathematica (and also Lua and Fish).

              I don’t know why, but in, e.g. R, it doesn’t bother me, I get caught by it in Lua all the time.

              I suppose it’s a function of how far the array is abstracted from being pointers to an address that makes it easier to mentally switch.

    • Pika@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      this is what messed me up with ZSH for a bit, having a shell default to 1 instead of 0 was weird