Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. What's your favorite 1 character length variable name?

What's your favorite 1 character length variable name?

Scheduled Pinned Locked Moved Uncategorized
53 Posts 43 Posters 4 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • woe2you@beige.partyW woe2you@beige.party

    @catsalad i is the only one that won't make me want to stab you in a face, and it's only acceptable as an iteration counter.

    (Aside from code golf, obv)

    tarix29@tech.lgbtT This user is from outside of this forum
    tarix29@tech.lgbtT This user is from outside of this forum
    tarix29@tech.lgbt
    wrote last edited by
    #4

    @woe2you @catsalad x and z are also sometimes ok only if they represent 3d coordinates along with y

    1 Reply Last reply
    0
    • catsalad@infosec.exchangeC catsalad@infosec.exchange

      What's your favorite 1 character length variable name?

      dgodon@mastodon.onlineD This user is from outside of this forum
      dgodon@mastodon.onlineD This user is from outside of this forum
      dgodon@mastodon.online
      wrote last edited by
      #5

      @catsalad let x = x

      linuxandyarn@hachyderm.ioL 1 Reply Last reply
      0
      • catsalad@infosec.exchangeC catsalad@infosec.exchange

        What's your favorite 1 character length variable name?

        jenshannemann@mastodon.onlineJ This user is from outside of this forum
        jenshannemann@mastodon.onlineJ This user is from outside of this forum
        jenshannemann@mastodon.online
        wrote last edited by
        #6

        @catsalad z only at 1%? Are really so few people regularly dealing with complex numbers? Hard to believe.

        echopapa@social.tchncs.deE 1 Reply Last reply
        0
        • catsalad@infosec.exchangeC catsalad@infosec.exchange

          What's your favorite 1 character length variable name?

          zedaardv@mastodon.worldZ This user is from outside of this forum
          zedaardv@mastodon.worldZ This user is from outside of this forum
          zedaardv@mastodon.world
          wrote last edited by
          #7

          @catsalad I catch myself doing defaults, like x,i, n. then change to q, for example, to keep it fresh, and confuse my future self.

          1 Reply Last reply
          0
          • catsalad@infosec.exchangeC catsalad@infosec.exchange

            What's your favorite 1 character length variable name?

            swordlace@www.librepunk.clubS This user is from outside of this forum
            swordlace@www.librepunk.clubS This user is from outside of this forum
            swordlace@www.librepunk.club
            wrote last edited by
            #8

            @catsalad I specifically chose zsh for my home machine so I could use emoji for variable and function names lol

            Link Preview Image
            ZSH prompt with finger guns πŸ‘‰ 😎 πŸ‘‰ (requires emoji support)

            ZSH prompt with finger guns πŸ‘‰ 😎 πŸ‘‰ (requires emoji support) - fingerguns.zsh-theme

            favicon

            Gist (gist.github.com)

            catsalad@infosec.exchangeC cr0w@infosec.exchangeC 2 Replies Last reply
            0
            • swordlace@www.librepunk.clubS swordlace@www.librepunk.club

              @catsalad I specifically chose zsh for my home machine so I could use emoji for variable and function names lol

              Link Preview Image
              ZSH prompt with finger guns πŸ‘‰ 😎 πŸ‘‰ (requires emoji support)

              ZSH prompt with finger guns πŸ‘‰ 😎 πŸ‘‰ (requires emoji support) - fingerguns.zsh-theme

              favicon

              Gist (gist.github.com)

              catsalad@infosec.exchangeC This user is from outside of this forum
              catsalad@infosec.exchangeC This user is from outside of this forum
              catsalad@infosec.exchange
              wrote last edited by
              #9

              @swordlace
              Beautiful!

              1 Reply Last reply
              0
              • swordlace@www.librepunk.clubS swordlace@www.librepunk.club

                @catsalad I specifically chose zsh for my home machine so I could use emoji for variable and function names lol

                Link Preview Image
                ZSH prompt with finger guns πŸ‘‰ 😎 πŸ‘‰ (requires emoji support)

                ZSH prompt with finger guns πŸ‘‰ 😎 πŸ‘‰ (requires emoji support) - fingerguns.zsh-theme

                favicon

                Gist (gist.github.com)

                cr0w@infosec.exchangeC This user is from outside of this forum
                cr0w@infosec.exchangeC This user is from outside of this forum
                cr0w@infosec.exchange
                wrote last edited by
                #10

                @swordlace @catsalad That's some @kajer type chaos there and I love it.

                catsalad@infosec.exchangeC 1 Reply Last reply
                0
                • cr0w@infosec.exchangeC cr0w@infosec.exchange

                  @swordlace @catsalad That's some @kajer type chaos there and I love it.

                  catsalad@infosec.exchangeC This user is from outside of this forum
                  catsalad@infosec.exchangeC This user is from outside of this forum
                  catsalad@infosec.exchange
                  wrote last edited by
                  #11

                  @cR0w @swordlace *runs away before @kajer arrives*

                  1 Reply Last reply
                  0
                  • catsalad@infosec.exchangeC catsalad@infosec.exchange

                    What's your favorite 1 character length variable name?

                    lp0_on_fire@social.linux.pizzaL This user is from outside of this forum
                    lp0_on_fire@social.linux.pizzaL This user is from outside of this forum
                    lp0_on_fire@social.linux.pizza
                    wrote last edited by
                    #12

                    @catsalad, what, no n or f? Both very convenient on a ZX Spectrum or ZX81 due to where FOR and NEXT are.

                    1 Reply Last reply
                    0
                    • catsalad@infosec.exchangeC catsalad@infosec.exchange

                      What's your favorite 1 character length variable name?

                      astifter@mastodon.astifter.comA This user is from outside of this forum
                      astifter@mastodon.astifter.comA This user is from outside of this forum
                      astifter@mastodon.astifter.com
                      wrote last edited by
                      #13

                      @catsalad Cudos to whoever actually uses π’ˆ™.

                      1 Reply Last reply
                      0
                      • R relay@relay.mycrowd.ca shared this topic
                      • catsalad@infosec.exchangeC catsalad@infosec.exchange

                        What's your favorite 1 character length variable name?

                        placebo@mastodon.ieP This user is from outside of this forum
                        placebo@mastodon.ieP This user is from outside of this forum
                        placebo@mastodon.ie
                        wrote last edited by
                        #14

                        @catsalad n is one of them

                        1 Reply Last reply
                        0
                        • catsalad@infosec.exchangeC catsalad@infosec.exchange

                          What's your favorite 1 character length variable name?

                          nuclearoatmeal@beige.partyN This user is from outside of this forum
                          nuclearoatmeal@beige.partyN This user is from outside of this forum
                          nuclearoatmeal@beige.party
                          wrote last edited by
                          #15

                          @catsalad

                          Damnit. There was no k or q.

                          1 Reply Last reply
                          0
                          • catsalad@infosec.exchangeC catsalad@infosec.exchange

                            What's your favorite 1 character length variable name?

                            hcf@infosec.exchangeH This user is from outside of this forum
                            hcf@infosec.exchangeH This user is from outside of this forum
                            hcf@infosec.exchange
                            wrote last edited by
                            #16

                            On @catsalad prompt I talked to an LLM and #TIL:

                            # Good
                            max_temperature = 30

                            # Risky (though valid in Python)
                            🌑️_max = 30

                            Now I want to try it when I get to a console

                            ptmcg@fosstodon.orgP 1 Reply Last reply
                            0
                            • darthnull@infosec.exchangeD This user is from outside of this forum
                              darthnull@infosec.exchangeD This user is from outside of this forum
                              darthnull@infosec.exchange
                              wrote last edited by
                              #17

                              @petealexharris @catsalad Especially if the next nested loops are j and then k.

                              I wonder how many people just use i because it's what they've seen, and have no idea of where it came from...

                              (IIRC, weren't i, j, k (and maybe l?) specially treated by the FORTRAN compiler to specific data types for speed? It's been a looong time...)

                              elysemgrasso@wandering.shopE 1 Reply Last reply
                              0
                              • catsalad@infosec.exchangeC catsalad@infosec.exchange

                                What's your favorite 1 character length variable name?

                                linuxandyarn@hachyderm.ioL This user is from outside of this forum
                                linuxandyarn@hachyderm.ioL This user is from outside of this forum
                                linuxandyarn@hachyderm.io
                                wrote last edited by
                                #18

                                @catsalad For loops in my shell one-liners use A for IP addresses, D for directories, F for files, H for hostnames, N for numbers, and U for users. And yes, I capitalize them because one-character variables should call attention to the fact that they're temporary and easy to lose.

                                1 Reply Last reply
                                0
                                • dgodon@mastodon.onlineD dgodon@mastodon.online

                                  @catsalad let x = x

                                  linuxandyarn@hachyderm.ioL This user is from outside of this forum
                                  linuxandyarn@hachyderm.ioL This user is from outside of this forum
                                  linuxandyarn@hachyderm.io
                                  wrote last edited by
                                  #19

                                  @dgodon @catsalad paging @laurieandersonlyricbot2

                                  dgodon@mastodon.onlineD 1 Reply Last reply
                                  0
                                  • placebo@mastodon.ieP This user is from outside of this forum
                                    placebo@mastodon.ieP This user is from outside of this forum
                                    placebo@mastodon.ie
                                    wrote last edited by
                                    #20

                                    @BarneyDellar @catsalad totally understandable

                                    1 Reply Last reply
                                    0
                                    • darthnull@infosec.exchangeD darthnull@infosec.exchange

                                      @petealexharris @catsalad Especially if the next nested loops are j and then k.

                                      I wonder how many people just use i because it's what they've seen, and have no idea of where it came from...

                                      (IIRC, weren't i, j, k (and maybe l?) specially treated by the FORTRAN compiler to specific data types for speed? It's been a looong time...)

                                      elysemgrasso@wandering.shopE This user is from outside of this forum
                                      elysemgrasso@wandering.shopE This user is from outside of this forum
                                      elysemgrasso@wandering.shop
                                      wrote last edited by
                                      #21

                                      @darthnull @petealexharris @catsalad i through m were integers, so useful for counters and array indexes

                                      1 Reply Last reply
                                      0
                                      • linuxandyarn@hachyderm.ioL linuxandyarn@hachyderm.io

                                        @dgodon @catsalad paging @laurieandersonlyricbot2

                                        dgodon@mastodon.onlineD This user is from outside of this forum
                                        dgodon@mastodon.onlineD This user is from outside of this forum
                                        dgodon@mastodon.online
                                        wrote last edited by
                                        #22

                                        @linuxandyarn @catsalad @laurieandersonlyricbot2 https://mastodon.social/@laurieandersonlyricbot2/11645770166764335sonlyricbot2@mastodon.social https://mastodon.social/@laurieandersonlyricbot2/116457701667643358

                                        1 Reply Last reply
                                        0
                                        • darthnull@infosec.exchangeD This user is from outside of this forum
                                          darthnull@infosec.exchangeD This user is from outside of this forum
                                          darthnull@infosec.exchange
                                          wrote last edited by
                                          #23

                                          @petealexharris @ElyseMGrasso @catsalad "misremembered." heh. At this point, the fact that I remember anything at all about this bit of programming lore, I consider a victory.

                                          (integrating assembly with FORTRAN on a Unisys mainframe was one of my favorite weird assignments in college...)

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups