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
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