cross-posted from: https://lemmy.world/post/10094818
spoiler
Gender variability as declarations in JavaScript: const / let / var
Meme is based on Jordan Peterson “approival / disapproval” format, him being a conservative who disapproves of gender fluidity.
Transcript:
- Jordan Peterson approval image: const gender;
- Jordan Peterson angry image: let gender;
- Jordan Peterson crying image: var gender;
Douchebag Peterson doesn’t deserve to be a meme.
void* gender
it can be anything i want >:)python:
gender: Optional[str] = None
How about:
gender: Optional[complex]
self.gender = 1.63-2.1j
🤔
Joke’s on you because they’re all still mutable objects behind the reference.
Last one can be freely changed by anyone, the middle one still has some restraints.
Can anyone explain it to me, please? 🥹
In JavaScript, a const variable is an immutable constant that you cannot reassign. Similar to how many conservatives think of gender, an intrinsic fact of a person that you can only read, but never change.
The “let” keyword declares a variable in a local scope, the nearest surrounding curly braces. It can be changed in that scope, but does not exist anywhere else. I assume this is meant to concede that gender is a spectrum and your presentation can kind of wiggle, such as between “very manly” and “not as manly” but still a man. Like, a stereotypical lumberjack and a stereotypical twink are both men so there isn’t “one way to be a man” but a conservative might say " but they are still men, you can change how you present but you can’t change sex".
The “var” keyword lifts the variable definition to the top of the function, or “hoists” it up. A variable declared with var can be accessed and modified anywhere after the block it was declared in. Gender is a spectrum and it can be reassigned anywhere, at anytime, to anything.
I interpret it a bit differently. After all, a variable declared with
var
isn’t really more capable of being rebound, or bound to more values, than one declared withlet
. However, it is possible, withvar
, that setting a variable in one place could change it unexpectedly in another, so Rose Noble coming out as trans could cause Jordan Peterson to also suddenly be a woman.The “var” keyword lifts the variable definition to the top of the function, or “hoists” it up. A variable declared with var can be accessed and modified anywhere after the block it was declared in. Gender is a spectrum and it can be reassigned anywhere, at anytime, to anything.
similar to how most liberals think of gender
I thought this was obvious.
Const keyword means constant, a value that won’t change after the application has been compiled; this allows for certain optimizations.
Let keyword is a JavaScript variable that is safely scoped down to the method or function level.
Var keyword is generally discouraged in JavaScript, because it’s a global declaration. The value of it could be available anywhere in the application, and the app might have collisions.
So, the meme is, shifting from a constant, unchanging gender, to the middle where gender is defined and scoped to a local level, to the extreme, where gender is variable globally.
Anyway you put it it’s not gonna please non-binary people.
NB here - this is hilarious.
const gender = 0.5
Non-binary, cis, non-genderfluid
Ooh or “gender = null”
That would be agender.
It’s not a gender tho… Or is it?
vsauce music starts playingGood point!
Null was a mistake (as per what quite a few people say) XD
Don’t know if some actual thing saying “undefined” explicitly would/could be any better, though.
There are two kinds of “null” that are often called out as mistakes, you may be thinking of. One is the null reference, as found in languages like C and Java, which Tony Hoare, who created it for ALGOL back in the sixties, has called his “billion dollar mistake”. The other is the three-valued-logic of null in SQL, which is almost as bad.
There’s nothing wrong with “null”, necessarily, in other contexts, although I do think a more clear name for whatever it means in any given context might be better.
That’s 0.1 2 so it’s still binary
Checkmate atheist
Edit: the 2 is supposed to be a subscript
Now write it in IEEE754 without using the internet.
I can’t comment anything without the internet. Checkmate atheist.
I didn’t say you had to write it on Lemmy. Write it on paper.
I did. Prove me wrong
The third bit is wrong. Prove me wrong.
Yeah that’s what i meant, well…
I guess binary is better interpreted as a boolean than being actually written in a binary base.
They forgot what it’s like coding in binary i tell you that!
People not getting this… computers are inherently binary (until quantum computers become truly viable). That’s the joke.