What's your favorite 1 character length variable name?
-
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!
Ancient Egyptian hieroglyph censorship is the worst idea ever. - Microsoft Q&A
As a Egyptomania, I often type hieroglyphic words in window OS, but have some problem. There is a problem with fonts being censored when using phallus-shaped letters in Windows OS. ๐ธ๐น๐บ ๐ธ๐ค๐น๐ค๐บ If other hieroglyphs are added next to this letter,โฆ
(learn.microsoft.com)
-
What's your favorite 1 character length variable name?
@catsalad ::draws ancient Quenya tengwa symbol, whispers its name, watches the air fill with ethereal light and a thrumming::
-
What's your favorite 1 character length variable name?
@catsalad I wish I could change my vote

-
What's your favorite 1 character length variable name?
@catsalad `i`, my code is very complex.

-
What's your favorite 1 character length variable name?
@catsalad Is this multi-choice ironically?
-
What's your favorite 1 character length variable name?
@catsalad who tf voted for the โlodashโ
โ
๏ธ -
What's your favorite 1 character length variable name?
@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) -
What's your favorite 1 character length variable name?
@catsalad
doing math: x
coding : i -
What's your favorite 1 character length variable name?
@catsalad Actually, it's ัญ
-
What's your favorite 1 character length variable name?
@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!

๏ธ_max = 30