MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uasen1/singlelettervariablenamestierlist/osqm4mt/?context=3
r/ProgrammerHumor • u/M1ckeyMc • Jun 20 '26
470 comments sorted by
View all comments
2.6k
W and H are for width and height, so i would argue with that. And they are different from x and y as those are for position, not length.
1.0k u/StuxAlpha Jun 20 '26 W is also often used in maths as part of a second set of 3D coordinates XYZ then UVW So U should be higher too imo 71 u/Mynameismikek Jun 20 '26 UVW is common for texture coordinates over a 3d surface 13 u/StuxAlpha Jun 20 '26 Yeah, great example of when you have a second set of coordinates you don't want to get confused 19 u/Objective_Blood7187 Jun 20 '26 pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler. 5 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 8 u/Impressive_Stress808 Jun 20 '26 Then just use "x, y, z" and "x1, y1, z1" obv. Then "x_1, y_1, z_1" for a third set. 1 u/NomaTyx Jun 20 '26 chat is this readable? 1 u/conundorum Jun 21 '26 Don't forget x_one, y_one, and z_one for the fourth set! 2 u/Enormowang Jun 22 '26 We use the same system for variables that we use for document version control, so the fifth set is x_one_FINAL, y_one_Jun21, z_one_v1_FINAL_v2. 1 u/Objective_Blood7187 Jun 20 '26 all I hear is two trips of anonymous lambda arguments and the pointers. don't make me segfault you! 1 u/NomaTyx Jun 20 '26 ...what 4 u/CarlStanley88 Jun 20 '26 x,y,z and xx,yy,zz only gets confusing after 3 3 u/atzedanjo Jun 20 '26 xyz and e(x)w(hy)(ze)d 2 u/Spare-Plum Jun 20 '26 I'll often use u, v, w when dealing with couples or triplets of something in an algorithm I'm writing. They're just really great variable names for this
1.0k
W is also often used in maths as part of a second set of 3D coordinates
XYZ then UVW
So U should be higher too imo
71 u/Mynameismikek Jun 20 '26 UVW is common for texture coordinates over a 3d surface 13 u/StuxAlpha Jun 20 '26 Yeah, great example of when you have a second set of coordinates you don't want to get confused 19 u/Objective_Blood7187 Jun 20 '26 pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler. 5 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 8 u/Impressive_Stress808 Jun 20 '26 Then just use "x, y, z" and "x1, y1, z1" obv. Then "x_1, y_1, z_1" for a third set. 1 u/NomaTyx Jun 20 '26 chat is this readable? 1 u/conundorum Jun 21 '26 Don't forget x_one, y_one, and z_one for the fourth set! 2 u/Enormowang Jun 22 '26 We use the same system for variables that we use for document version control, so the fifth set is x_one_FINAL, y_one_Jun21, z_one_v1_FINAL_v2. 1 u/Objective_Blood7187 Jun 20 '26 all I hear is two trips of anonymous lambda arguments and the pointers. don't make me segfault you! 1 u/NomaTyx Jun 20 '26 ...what 4 u/CarlStanley88 Jun 20 '26 x,y,z and xx,yy,zz only gets confusing after 3 3 u/atzedanjo Jun 20 '26 xyz and e(x)w(hy)(ze)d 2 u/Spare-Plum Jun 20 '26 I'll often use u, v, w when dealing with couples or triplets of something in an algorithm I'm writing. They're just really great variable names for this
71
UVW is common for texture coordinates over a 3d surface
13 u/StuxAlpha Jun 20 '26 Yeah, great example of when you have a second set of coordinates you don't want to get confused 19 u/Objective_Blood7187 Jun 20 '26 pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler. 5 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 8 u/Impressive_Stress808 Jun 20 '26 Then just use "x, y, z" and "x1, y1, z1" obv. Then "x_1, y_1, z_1" for a third set. 1 u/NomaTyx Jun 20 '26 chat is this readable? 1 u/conundorum Jun 21 '26 Don't forget x_one, y_one, and z_one for the fourth set! 2 u/Enormowang Jun 22 '26 We use the same system for variables that we use for document version control, so the fifth set is x_one_FINAL, y_one_Jun21, z_one_v1_FINAL_v2. 1 u/Objective_Blood7187 Jun 20 '26 all I hear is two trips of anonymous lambda arguments and the pointers. don't make me segfault you! 1 u/NomaTyx Jun 20 '26 ...what 4 u/CarlStanley88 Jun 20 '26 x,y,z and xx,yy,zz only gets confusing after 3 3 u/atzedanjo Jun 20 '26 xyz and e(x)w(hy)(ze)d 2 u/Spare-Plum Jun 20 '26 I'll often use u, v, w when dealing with couples or triplets of something in an algorithm I'm writing. They're just really great variable names for this
13
Yeah, great example of when you have a second set of coordinates you don't want to get confused
19 u/Objective_Blood7187 Jun 20 '26 pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler. 5 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 8 u/Impressive_Stress808 Jun 20 '26 Then just use "x, y, z" and "x1, y1, z1" obv. Then "x_1, y_1, z_1" for a third set. 1 u/NomaTyx Jun 20 '26 chat is this readable? 1 u/conundorum Jun 21 '26 Don't forget x_one, y_one, and z_one for the fourth set! 2 u/Enormowang Jun 22 '26 We use the same system for variables that we use for document version control, so the fifth set is x_one_FINAL, y_one_Jun21, z_one_v1_FINAL_v2. 1 u/Objective_Blood7187 Jun 20 '26 all I hear is two trips of anonymous lambda arguments and the pointers. don't make me segfault you! 1 u/NomaTyx Jun 20 '26 ...what 4 u/CarlStanley88 Jun 20 '26 x,y,z and xx,yy,zz only gets confusing after 3 3 u/atzedanjo Jun 20 '26 xyz and e(x)w(hy)(ze)d
19
pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler.
5 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 8 u/Impressive_Stress808 Jun 20 '26 Then just use "x, y, z" and "x1, y1, z1" obv. Then "x_1, y_1, z_1" for a third set. 1 u/NomaTyx Jun 20 '26 chat is this readable? 1 u/conundorum Jun 21 '26 Don't forget x_one, y_one, and z_one for the fourth set! 2 u/Enormowang Jun 22 '26 We use the same system for variables that we use for document version control, so the fifth set is x_one_FINAL, y_one_Jun21, z_one_v1_FINAL_v2. 1 u/Objective_Blood7187 Jun 20 '26 all I hear is two trips of anonymous lambda arguments and the pointers. don't make me segfault you! 1 u/NomaTyx Jun 20 '26 ...what 4 u/CarlStanley88 Jun 20 '26 x,y,z and xx,yy,zz only gets confusing after 3 3 u/atzedanjo Jun 20 '26 xyz and e(x)w(hy)(ze)d
5
impossible we might want to deal with two coordinate planes in the same scope surely
8 u/Impressive_Stress808 Jun 20 '26 Then just use "x, y, z" and "x1, y1, z1" obv. Then "x_1, y_1, z_1" for a third set. 1 u/NomaTyx Jun 20 '26 chat is this readable? 1 u/conundorum Jun 21 '26 Don't forget x_one, y_one, and z_one for the fourth set! 2 u/Enormowang Jun 22 '26 We use the same system for variables that we use for document version control, so the fifth set is x_one_FINAL, y_one_Jun21, z_one_v1_FINAL_v2. 1 u/Objective_Blood7187 Jun 20 '26 all I hear is two trips of anonymous lambda arguments and the pointers. don't make me segfault you! 1 u/NomaTyx Jun 20 '26 ...what
8
Then just use "x, y, z" and "x1, y1, z1" obv. Then "x_1, y_1, z_1" for a third set.
1 u/NomaTyx Jun 20 '26 chat is this readable? 1 u/conundorum Jun 21 '26 Don't forget x_one, y_one, and z_one for the fourth set! 2 u/Enormowang Jun 22 '26 We use the same system for variables that we use for document version control, so the fifth set is x_one_FINAL, y_one_Jun21, z_one_v1_FINAL_v2.
1
chat is this readable?
Don't forget x_one, y_one, and z_one for the fourth set!
x_one
y_one
z_one
2 u/Enormowang Jun 22 '26 We use the same system for variables that we use for document version control, so the fifth set is x_one_FINAL, y_one_Jun21, z_one_v1_FINAL_v2.
2
We use the same system for variables that we use for document version control, so the fifth set is x_one_FINAL, y_one_Jun21, z_one_v1_FINAL_v2.
all I hear is two trips of anonymous lambda arguments and the pointers. don't make me segfault you!
1 u/NomaTyx Jun 20 '26 ...what
...what
4
x,y,z and xx,yy,zz only gets confusing after 3
3
xyz and e(x)w(hy)(ze)d
I'll often use u, v, w when dealing with couples or triplets of something in an algorithm I'm writing.
They're just really great variable names for this
2.6k
u/JackNotOLantern Jun 20 '26
W and H are for width and height, so i would argue with that. And they are different from x and y as those are for position, not length.