npub15n…z76nx on Nostr: When representing a rectangle in code, I have values named "width" and "height", and ...
When representing a rectangle in code, I have values named "width" and "height", and it is immediately clear that those values represent "the length of the top & bottom edges" and "the length of the left & right edges"
When representing a square in code, what do you call the equivalent single value which represents "the length of the top, bottom, left & right edges"? "sideLength" would work but it's so much more clunky than "width"
#math #maths #programming
Published at
2024-04-06 09:44:03Event JSON
{
"id": "43665501a6071c47faefd98353222c13a02c232f4708eeba779a9755a90534b0",
"pubkey": "a4ce72796a011a9de795a6764b905802b0acae385ab90d0f84d1f734aa2ca610",
"created_at": 1712396643,
"kind": 1,
"tags": [
[
"t",
"math"
],
[
"t",
"maths"
],
[
"t",
"programming"
],
[
"proxy",
"https://fosstodon.org/users/mort/statuses/112223626440998780",
"activitypub"
]
],
"content": "When representing a rectangle in code, I have values named \"width\" and \"height\", and it is immediately clear that those values represent \"the length of the top \u0026 bottom edges\" and \"the length of the left \u0026 right edges\"\n\nWhen representing a square in code, what do you call the equivalent single value which represents \"the length of the top, bottom, left \u0026 right edges\"? \"sideLength\" would work but it's so much more clunky than \"width\"\n\n#math #maths #programming",
"sig": "c9c60d7f972aad503c2457fc26d0584b4de066db32bf7c185daec3ef185c058fb34116b62df58fb6e184d379f54c605dbf3eea10c6ff9715f20b655e62632650"
}