• Vivendi@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      11 days ago

      That shit was INCREDIBLY dumb

      It comes from the old records industry.

      Also, guys, let me rush to my university to tell them they’re extremely racist to enroll me in a “Master’s” program.in fucking Iran.

  • ramjambamalam@lemmy.ca
    link
    fedilink
    arrow-up
    51
    ·
    edit-2
    12 days 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
      ·
      12 days 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
      ·
      12 days 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
    ·
    12 days 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.

      • xmunk@sh.itjust.works
        link
        fedilink
        arrow-up
        6
        ·
        12 days ago

        Hey now, you know that according to the Bible the biggest number is a million. Anything larger than that including infinity is some of that “woke shit”.

        Your array will be 999,999, 999,998, 999,997 …

  • notabot@lemm.ee
    link
    fedilink
    arrow-up
    7
    ·
    12 days 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
      ·
      12 days 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?

      • Gigamegs@lemmy.zip
        link
        fedilink
        Deutsch
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        12 days ago

        I asked deepseek: Downward-growing stacks** are more common in many architectures (e.g., x86, ARM). This convention originated from early computer architectures and has been carried forward for consistency.

        Funny, I can’t remember, because I did a lot of assembler.

  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    2
    ·
    12 days 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
      7
      arrow-down
      1
      ·
      12 days 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
        ·
        12 days 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
          ·
          12 days 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
            ·
            12 days 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
              ·
              11 days 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
      ·
      12 days ago

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