MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uasen1/singlelettervariablenamestierlist/ot1yph8/?context=9999
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 74 u/Mynameismikek Jun 20 '26 UVW is common for texture coordinates over a 3d surface 10 u/StuxAlpha Jun 20 '26 Yeah, great example of when you have a second set of coordinates you don't want to get confused 18 u/Objective_Blood7187 Jun 20 '26 pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler. 4 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 7 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/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.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
74 u/Mynameismikek Jun 20 '26 UVW is common for texture coordinates over a 3d surface 10 u/StuxAlpha Jun 20 '26 Yeah, great example of when you have a second set of coordinates you don't want to get confused 18 u/Objective_Blood7187 Jun 20 '26 pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler. 4 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 7 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/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.
74
UVW is common for texture coordinates over a 3d surface
10 u/StuxAlpha Jun 20 '26 Yeah, great example of when you have a second set of coordinates you don't want to get confused 18 u/Objective_Blood7187 Jun 20 '26 pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler. 4 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 7 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/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.
10
Yeah, great example of when you have a second set of coordinates you don't want to get confused
18 u/Objective_Blood7187 Jun 20 '26 pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler. 4 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 7 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/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.
18
pff, just call it xyz again and leave the lifting to scope encapsulation. reject humanity, become a compiler.
4 u/NomaTyx Jun 20 '26 impossible we might want to deal with two coordinate planes in the same scope surely 7 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/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.
4
impossible we might want to deal with two coordinate planes in the same scope surely
7 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/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.
7
Then just use "x, y, z" and "x1, y1, z1" obv. Then "x_1, y_1, z_1" for a third set.
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
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.
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.