this post was submitted on 29 Dec 2023
224 points (79.8% liked)

Programmer Humor

32361 readers
124 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/10094818

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

you are viewing a single comment's thread
view the rest of the comments
[–] flying_sheep@lemmy.ml 14 points 10 months ago* (last edited 10 months ago) (2 children)
const gender = 0.5

Non-binary, cis, non-genderfluid

[–] girsaysdoom@sh.itjust.works 15 points 10 months ago (2 children)
[–] CanadaPlus@lemmy.sdf.org 9 points 10 months ago (2 children)
[–] QuazarOmega@lemy.lol 4 points 10 months ago* (last edited 10 months ago)

It's not a gender tho... Or is it?
vsauce music starts playing

[–] girsaysdoom@sh.itjust.works 1 points 10 months ago
[–] CallumWells@lemmy.ml 1 points 10 months ago* (last edited 10 months ago) (1 children)

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.

[–] docAvid@midwest.social 2 points 10 months ago

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.

[–] lugal@sopuli.xyz 7 points 10 months ago* (last edited 10 months ago) (2 children)

That's 0.1 ~2~ so it's still binary

Checkmate atheist

Edit: the 2 is supposed to be a subscript

[–] HumanPerson@sh.itjust.works 7 points 10 months ago (1 children)

Now write it in IEEE754 without using the internet.

[–] lugal@sopuli.xyz 7 points 10 months ago (1 children)

I can't comment anything without the internet. Checkmate atheist.

[–] HumanPerson@sh.itjust.works 5 points 10 months ago (1 children)

I didn't say you had to write it on Lemmy. Write it on paper.

[–] lugal@sopuli.xyz 4 points 10 months ago (1 children)
[–] HumanPerson@sh.itjust.works 3 points 10 months ago

The third bit is wrong. Prove me wrong.

[–] Funkytom467@lemmy.world 2 points 10 months ago

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!