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.
  • catsalad@infosec.exchangeC catsalad@infosec.exchange

    What's your favorite 1 character length variable name?

    iamlayer8@mastodon.socialI This user is from outside of this forum
    iamlayer8@mastodon.socialI This user is from outside of this forum
    iamlayer8@mastodon.social
    wrote last edited by
    #32

    @catsalad
    It’s I for nostalgia reasons. But I like emojis in code and the last one is just cool.

    I demand equal treatment for all Unicode!

    To be honest, there should be dedicated Unicode characters for code.
    (now everybody should be aware that I’m not a programmer myself)

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

      What's your favorite 1 character length variable name?

      lijepasam@social.vivaldi.netL This user is from outside of this forum
      lijepasam@social.vivaldi.netL This user is from outside of this forum
      lijepasam@social.vivaldi.net
      wrote last edited by
      #33

      @catsalad
      doing math: x
      coding : i

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

        What's your favorite 1 character length variable name?

        dc4ac@radiosocial.deD This user is from outside of this forum
        dc4ac@radiosocial.deD This user is from outside of this forum
        dc4ac@radiosocial.de
        wrote last edited by
        #34

        @catsalad Actually, it's ѭ

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

          What's your favorite 1 character length variable name?

          L This user is from outside of this forum
          L This user is from outside of this forum
          luc0x61@mastodon.gamedev.place
          wrote last edited by
          #35

          @catsalad The all times favorite, thanks to math and K&R, can only be i, but... I do a lot of MISRA strict code, so nothing shorter than 4 char and meaningful in the context! 😅

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

            What's your favorite 1 character length variable name?

            rebootdeluxe@infosec.exchangeR This user is from outside of this forum
            rebootdeluxe@infosec.exchangeR This user is from outside of this forum
            rebootdeluxe@infosec.exchange
            wrote last edited by
            #36

            @catsalad ∞

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

              What's your favorite 1 character length variable name?

              gurkan@has.siktir.inG This user is from outside of this forum
              gurkan@has.siktir.inG This user is from outside of this forum
              gurkan@has.siktir.in
              wrote last edited by
              #37

              @catsalad https://unicode-explorer.com/c/200B
              a.k.a:
              ​
              ​
              ​
              ​

              catsalad@infosec.exchangeC 1 Reply Last reply
              0
              • gurkan@has.siktir.inG gurkan@has.siktir.in

                @catsalad https://unicode-explorer.com/c/200B
                a.k.a:
                ​
                ​
                ​
                ​

                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
                #38

                @gurkan Zero-width variable names

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

                  What's your favorite 1 character length variable name?

                  bradsaillard@mastodon.socialB This user is from outside of this forum
                  bradsaillard@mastodon.socialB This user is from outside of this forum
                  bradsaillard@mastodon.social
                  wrote last edited by
                  #39

                  @catsalad
                  Where’s n ?
                  My most frequent choice for a loop variable in REXX.

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

                    What's your favorite 1 character length variable name?

                    avatastic@avatastic.ukA This user is from outside of this forum
                    avatastic@avatastic.ukA This user is from outside of this forum
                    avatastic@avatastic.uk
                    wrote last edited by
                    #40

                    @catsalad U+037E

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

                      What's your favorite 1 character length variable name?

                      ada@mastodon.catgirl.cloudA This user is from outside of this forum
                      ada@mastodon.catgirl.cloudA This user is from outside of this forum
                      ada@mastodon.catgirl.cloud
                      wrote last edited by
                      #41

                      @catsalad@infosec.exchange U+202E, the right to left override character "‮". it does what it says on the tin. (and also reverses parentheses)

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

                        What's your favorite 1 character length variable name?

                        golgaloth@writing.exchangeG This user is from outside of this forum
                        golgaloth@writing.exchangeG This user is from outside of this forum
                        golgaloth@writing.exchange
                        wrote last edited by
                        #42

                        @catsalad

                        I have a character in one of my books called Viva, and everyone abbreviates it to Vee, so...

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

                          What's your favorite 1 character length variable name?

                          beandev@social.tchncs.deB This user is from outside of this forum
                          beandev@social.tchncs.deB This user is from outside of this forum
                          beandev@social.tchncs.de
                          wrote last edited by
                          #43

                          @catsalad
                          As Rust developer, of course `_` 😁

                          1 Reply Last reply
                          0
                          • jenshannemann@mastodon.onlineJ jenshannemann@mastodon.online

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

                            echopapa@social.tchncs.deE This user is from outside of this forum
                            echopapa@social.tchncs.deE This user is from outside of this forum
                            echopapa@social.tchncs.de
                            wrote last edited by
                            #44

                            @JensHannemann

                            The Fortran people do. But we need the i in the first place 😀

                            @catsalad

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

                              What's your favorite 1 character length variable name?

                              oxy@social.bsdlab.auO This user is from outside of this forum
                              oxy@social.bsdlab.auO This user is from outside of this forum
                              oxy@social.bsdlab.au
                              wrote last edited by
                              #45
                              @catsalad
                              if 🧻 {
                              return 🚽
                              } else {
                              return 💩
                              }
                              1 Reply Last reply
                              0
                              • catsalad@infosec.exchangeC catsalad@infosec.exchange

                                What's your favorite 1 character length variable name?

                                b_rain@troet.cafeB This user is from outside of this forum
                                b_rain@troet.cafeB This user is from outside of this forum
                                b_rain@troet.cafe
                                wrote last edited by
                                #46

                                @catsalad
                                n, m
                                Or may i suggest ꙮ (meaning " a lot of eyes", hex code: a66e)

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

                                  What's your favorite 1 character length variable name?

                                  drahardja@sfba.socialD This user is from outside of this forum
                                  drahardja@sfba.socialD This user is from outside of this forum
                                  drahardja@sfba.social
                                  wrote last edited by
                                  #47

                                  @catsalad 𰻞

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

                                    What's your favorite 1 character length variable name?

                                    ramonfincken@mastodon.socialR This user is from outside of this forum
                                    ramonfincken@mastodon.socialR This user is from outside of this forum
                                    ramonfincken@mastodon.social
                                    wrote last edited by
                                    #48

                                    @catsalad i next to "temp" for a var that only lives 5 lines

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

                                      What's your favorite 1 character length variable name?

                                      perlplayer@mastodon.socialP This user is from outside of this forum
                                      perlplayer@mastodon.socialP This user is from outside of this forum
                                      perlplayer@mastodon.social
                                      wrote last edited by
                                      #49

                                      @catsalad $_ 😄

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

                                        What's your favorite 1 character length variable name?

                                        ptmcg@fosstodon.orgP This user is from outside of this forum
                                        ptmcg@fosstodon.orgP This user is from outside of this forum
                                        ptmcg@fosstodon.org
                                        wrote last edited by
                                        #50

                                        @catsalad It's not 1 but 2 characters: `_·` This is a legal variable name in Python. The second character is the Unicode MIDDLE DOT. It is only legal as a body character, not an initial character, so you need the leading "_".

                                        ptmcg@fosstodon.orgP 1 Reply Last reply
                                        0
                                        • hcf@infosec.exchangeH hcf@infosec.exchange

                                          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 This user is from outside of this forum
                                          ptmcg@fosstodon.orgP This user is from outside of this forum
                                          ptmcg@fosstodon.org
                                          wrote last edited by
                                          #51

                                          @hcf @catsalad Sadly, Python rejects this. There are a limited number of leading characters for variable names (although Unicode denormalized versions of them are valid), but emojis aren't among them.

                                          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