• @ZeffSyde
    link
    132 days ago

    Am I The only one that sees the tie as yellow in this photo?

  • @[email protected]
    link
    fedilink
    59
    edit-2
    3 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
      link
      fedilink
      162 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.

    • @[email protected]
      link
      fedilink
      72 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

    • @stetech
      link
      22 days ago
      • Port numbers only go up to 5280, the number of feet in a mile

      What about internationalization – do the European port numbers go up to the cm or only meter count within a kilometer?

      • @ZILtoid1991
        link
        12 days ago

        Elon Musk will fund the development of KKK++, a programming language that will bring us back to the good old times before “GOTOs considered harmful” dropped, because real programmers not only do away with memory safety, but structured programming too.

    • @iAvicenna
      link
      63 days ago

      Nope Main branches will be renamed Daddy

  • ikt
    link
    fedilink
    English
    773 days ago

    reverting main back to master

      • @[email protected]
        link
        fedilink
        443 days ago

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

        • qaz
          link
          English
          233 days ago

          It was kind of pointless, but at least it made software work with custom default branches.

        • @chonglibloodsport
          link
          203 days 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.

          • @[email protected]
            link
            fedilink
            22 days ago

            That’s just not true. It originally came from Bitkeeper’s terminology, which had a master branch and slave branches.

              • @[email protected]
                link
                fedilink
                12 days ago

                Well, he doesn’t seem so sure about it himself. From the same link:

                (But as noted in a separate thread, it is possible it stems from bitkeeper’s master/slave terminology. I hoped to do some historical research but health emergency in my family delayed that.)

                • @chonglibloodsport
                  link
                  32 days ago

                  He also said:

                  the impression words form in the reader is more important than their intent

                  He didn’t intend for the master/slave connotation. He intended for the recording master connotation. Either way, he regrets using the word master and he’s supportive of the change.

          • @[email protected]
            link
            fedilink
            83 days 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!

            • @[email protected]
              link
              fedilink
              73 days ago

              Merged -> gone gold

              Deployed -> gone platinum

              Gone a week without crashing production -> triple platinum

        • @Maggoty
          link
          23 days ago

          But why even? There’s no risk to changing it and some risk to keeping it. That’s the reason for the push to change it. Keeping something just because it’s tradition isn’t a good idea outside ceremonies.

          • @[email protected]
            link
            fedilink
            10
            edit-2
            2 days ago

            There is definitely a risk in changing it. Many automation systems that assume there is a master branch needed to be changed. Something that’s trivial yes but changing a perfectly running system is always a potential risk.

            Also stuff like tutorials and documentation become outdated.

            • @Maggoty
              link
              02 days ago

              If they can’t change what’s essentially a variable name without issues then should they be doing the job?

              • @[email protected]
                link
                fedilink
                12 days ago

                In assessing risk assume everyone is a bumbling idiot. For we all have moments of great stupidity.

          • @[email protected]
            link
            fedilink
            52 days ago

            I don’t accept that because everyone’s doing it or “group-think” are valid excuses do jump on a trend. Things like this maybe don’t seem like a big deal for you but for those that hate this culture it’s just one more example of a dumb change being shoved down their throats. This could also be the straw that breaks the camels back.

            • @Maggoty
              link
              12 days ago

              They have a reason. You just don’t like it.

          • @shortrounddev
            link
            English
            153 days ago

            It’s the principle of letting uneducated people dictate what words are acceptable to us

              • Eager Eagle
                link
                English
                43 days ago

                overeducated people who can’t see that “master” has multiple meanings.

                • @[email protected]
                  link
                  fedilink
                  1
                  edit-2
                  2 days ago

                  It’s like when you write a regex for a specific case, that then gets applied everywhere.

                  Why can you get a Master in Decolonization Studies at a university?

            • @Maggoty
              link
              03 days ago

              What makes you think they’re uneducated?

      • @riodoro1
        link
        73 days ago

        For this political correctness you get trunk.

    • @[email protected]
      link
      fedilink
      42 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.

    • @mEEGal
      link
      423 days ago

      and all the others start with “slave/”

    • @phcorcoran
      link
      113 days ago

      (Someone else made it but I can’t find the source)

  • @MTK
    link
    253 days ago

    Error handling should only be with “if”

    Variable names must be generic and similar to each-other

    Debugging is only done with prints

    Version numbers must be incoherent, hard to order correctly, contain letters and jump in ways that don’t align with the updates done.

    • @Randelung
      link
      83 days ago

      Single letters or UTF8 symbols only. Emojis are encouraged.

      • Rikudou_Sage
        link
        fedilink
        4
        edit-2
        2 days ago

        Pff, just use the numbers directly:

        ${1} = "value";
        ${2} = "DOGE";
        

        That makes it possible to do stuff like:

        for (${152} = 1; ${152} <= 2; ${152}++) {
            ${666} = $${152};
            print(${666});
        }
        

        This is a valid code, btw.

  • kamen
    link
    32 days ago

    Implying the orange fella has any say in programming language design and general tech conventions

    • @candybrie
      link
      142 days ago

      Implying he only makes executive orders about things he has a say in.

      • kamen
        link
        11 day ago

        You have a point unfortunately.

      • @[email protected]
        link
        fedilink
        73 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 …

        • pelya
          link
          193 days ago

          In Lua all arrays are just dictionaries with integer keys, a[0] will work just fine. It’s just that all built-in functions will expect arrays that start with index 1.

          • my_hat_stinks
            link
            fedilink
            83 days ago

            That’s slightly misleading, I think. There are no arrays in Lua, every Lua data structure is a table (sometimes pretending to be something else) and you can have anything as a key as long as it’s not nil. There’s also no integers, Lua only has a single number type which is floating point. This is perfectly valid:

            local tbl = {}
            local f = function() error(":(") end
            
            tbl[tbl] = tbl
            tbl[f] = tbl
            tbl["tbl"] = tbl
            
            print(tbl)
            -- table: 0x557a907f0f40
            print(tbl[tbl], tbl[f], tbl["tbl"])
            -- table: 0x557a907f0f40	table: 0x557a907f0f40	table: 0x557a907f0f40
            
            for key,value in pairs(tbl) do
              print(key, "=", value)
            end
            -- tbl	=	table: 0x557a907f0f40
            -- function: 0x557a907edff0	=	table: 0x557a907f0f40
            -- table: 0x557a907f0f40	=	table: 0x557a907f0f40
            
            print(type(1), type(-0.5), type(math.pi), type(math.maxinteger))
            -- number	number	number	number
            
          • @[email protected]
            link
            fedilink
            33 days ago

            PHP did that same thing. It was a big problem when algorithmic complexity attacks were discovered. It took PHP years to integrate an effective solution that didn’t break everything.

        • db0
          link
          fedilink
          103 days ago

          Fortran angrily starts typing…

          • db0
            link
            fedilink
            143 days ago

            I always felt that Lua was a girl

            • Sonotsugipaa
              link
              fedilink
              English
              183 days ago

              Lua - Portuguese feminine noun for “moon”, coming from the Latin “luna”
              Luna - Latin, feminine noun (coincidentally identical to the Italian noun, also feminine)

              Yup, Lua is a girl.

      • @[email protected]
        link
        fedilink
        33 days ago

        Writing Lua code that also interacts with C code that uses 0 indexing is an awful experience. Annoys me to this day even though haven’t used it for 2 years

      • nickwitha_k (he/him)
        link
        fedilink
        13 days ago

        This is one of the few things that I really don’t like any Lua. It’s otherwise pretty decent and useful.

    • @[email protected]
      link
      fedilink
      43 days ago

      Visual Basic used to let you choose if you wanted to start arrays at 0 or 1. It was an app-wide setting, so that was fun.

        • @[email protected]
          link
          fedilink
          23 days ago

          It’s how I got into programming, so I’ll always have a soft spot for it. Now it’s over 20 years later and I’m still coding.

          • nickwitha_k (he/him)
            link
            fedilink
            13 days ago

            Apple Basic (on an Apple IIe) was my first language that I recall.

            Didn’t have a computer powerful enough for VB until later. It does have a special place in my nostalgia zone but has also led so many astray.

    • @lefixxx
      link
      -63 days ago

      How is arrays starting at 1 still a controversial take. Arrays should start at 1 and offsets at 0.

        • Something Burger 🍔
          link
          fedilink
          22 days ago

          Not in languages where you don’t manually handle memory, such as PHP, SQL, Python… Higher-level languages using 0-indexed arrays are letting the abstraction leak.

      • Traister101
        link
        fedilink
        53 days ago

        So what’s 0 do then? I’m okay with wacky indexes (I’ve used something with negative indexes for a end-index shorthand) but 0 has to mean something that’s actually useful. Using the index as the offset into the array seems to be the most useful way to index them.

        • @[email protected]
          link
          fedilink
          02 days ago

          I’d say the index is actually an offset is a reasoning for explaining why it should start at 1. If index was an index, I’d just start at 1.

          I don’t think any one is better than the other, but history chose 0.

          That you can choose it in VB is probably the worst option :D

  • @NOT_RICK_SANCHEZ
    link
    233 days ago

    He’s got to be in contact with the CEO of my company, this is trade secret theft if not…

  • db0
    link
    fedilink
    153 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.

    • @NABDad
      link
      English
      33 days ago

      Are there really people capable of understanding this who aren’t capable of understanding, for example, “tariffs increase inflation”?

  • JackbyDev
    link
    fedilink
    English
    53 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.

    • @[email protected]
      link
      fedilink
      143 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.

      • @IndustryStandard
        link
        83 days ago

        It would screw up existing code but doing [array.length() -1] is pretty stupid.

      • @Klear
        link
        English
        43 days ago

        It doesn’t make sense that the fourth element is element number 3 either.

        Ultimately it’s just about you being used to it.

      • JackbyDev
        link
        fedilink
        English
        23 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.

        • @[email protected]
          link
          fedilink
          33 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
            link
            fedilink
            English
            13 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.

            • @[email protected]
              link
              fedilink
              22 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
      link
      fedilink
      English
      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