What's your favorite 1 character length variable name?
-
What's your favorite 1 character length variable name?
@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.
-
What's your favorite 1 character length variable name?
@catsalad I specifically chose zsh for my home machine so I could use emoji for variable and function names lol
https://gist.github.com/adaswordlace/d09c7bbd8000750fcce4e9f943e55eca
-
@catsalad I specifically chose zsh for my home machine so I could use emoji for variable and function names lol
https://gist.github.com/adaswordlace/d09c7bbd8000750fcce4e9f943e55eca
@swordlace
Beautiful! -
@catsalad I specifically chose zsh for my home machine so I could use emoji for variable and function names lol
https://gist.github.com/adaswordlace/d09c7bbd8000750fcce4e9f943e55eca
@swordlace @catsalad That's some @kajer type chaos there and I love it.
-
@swordlace @catsalad That's some @kajer type chaos there and I love it.
@cR0w @swordlace *runs away before @kajer arrives*
-
What's your favorite 1 character length variable name?
@catsalad, what, no n or f? Both very convenient on a ZX Spectrum or ZX81 due to where FOR and NEXT are.
-
What's your favorite 1 character length variable name?
@catsalad Cudos to whoever actually uses 𒈙.
-
R relay@relay.mycrowd.ca shared this topic
-
What's your favorite 1 character length variable name?
@catsalad n is one of them
-
What's your favorite 1 character length variable name?
Damnit. There was no k or q.
-
What's your favorite 1 character length variable name?
-
@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...)
-
What's your favorite 1 character length variable name?
@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.
-
@catsalad let x = x
-
@BarneyDellar @catsalad totally understandable
-
@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...)
@darthnull @petealexharris @catsalad i through m were integers, so useful for counters and array indexes
-
-
@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...)
-
What's your favorite 1 character length variable name?
@catsalad
𓂺
(U+130BA, from the Egyptian hieroglyphs block) -
What's your favorite 1 character length variable name?
@catsalad a for lambdas, i for iterations
-
@catsalad
𓂺
(U+130BA, from the Egyptian hieroglyphs block)@australopithecus The censored in Windows hieroglyphs!
️_max = 30