Programming Jokes: Lame, Science & Math Jokes!

In summary: An oldie but a goodie: Why do programmers confuse halloween and Christmas?What do you call it when a story goes round a stable time loop and returns to its own beginning?CSS properties are pretty flexible and browser renderers can be pretty accommodating. For example, the font-size property can accept a few different units of measurement, including px and em.Why does it take programmers so long to wash their hair?Because on the shampoo bottle it says "Lather, rinse and repeat".Q: How do you comfort a JavaScript bug?A: You console it.From a college drinking song:An MIT computer man got drunk one
  • #71
Not really a joke but still funny:

Did you know that ++[[]][+[]]+[+[]] evaluates to the string "10" in Javascript?
 
  • Like
  • Wow
Likes DrClaude, Wrichik Basu and Ibix
Physics news on Phys.org
  • #72
1670273563693.png
 
  • Like
Likes 256bits, Ibix, BillTre and 1 other person
  • #73
1670273764304.png
 
  • Like
Likes berkeman, Ibix and phinds
  • #74
jack action said:
Not really a joke but still funny
And/or horrifying. Yet strangely fascinating. I feel a bit like this is a prototype of the Enki virus from Snowcrash (Edit: Or was Inanna the virus and Enki the cure? Can't remember.)
jack action said:
Did you know that ++[[]][+[]]+[+[]] evaluates to the string "10" in Javascript?
So, trying to work this out: +[] is a trick where an empty list is coerced into a zero, right? So it's ++[[]][0]+[0]. And the zeroth element of the first list is an empty list, so it's ++[]+[0]. Then the increment operator coerces the empty list to a zero and adds one to it, giving 1+[0] which then turns into a "10" via string concatenation for some reason...?
 
  • #75
A developer's night is never complete without at least one "aha!" moment, and at least one "oh no!" moment.
 
  • Like
Likes Wrichik Basu
  • #76
1670280994179.png
 
  • Haha
  • Love
  • Like
Likes phinds, jack action, dlgoff and 1 other person
  • #78
I recall someone asking for confirmation that one is true and zero is false in C, to which some genius replied "1".
 
  • Like
  • Haha
Likes phinds, collinsmark, DrClaude and 5 others
  • #79
Ibix said:
I recall someone asking for confirmation that one is true and zero is false in C, to which some genius replied "1".
++0 would have been funnier... :wink:
 
  • Like
Likes Klystron and phinds
  • #84
Speaking of memory.

Memories.jpg
 
  • Like
  • Haha
Likes Ibix, 256bits, jack action and 4 others
  • #93
1671121287412.png
 
  • Like
  • Haha
Likes collinsmark, pbuk, Bandersnatch and 4 others
  • #100
  • #103
I was having trouble with my internet at the farm, so I moved the modem to the barn.

Now I have stable wifi.
 
  • Like
  • Haha
Likes Wrichik Basu, Ibix, jack action and 1 other person
  • #104
Borg said:
Now I have stable wifi.
Oh my gawd...
 
  • #105

I was having trouble with my internet at the farm, so I moved the modem to the barn.

Now I have stable wifi.


It may be stable but, I bet its thruput stinks.
 
  • Like
Likes BillTre and Ibix

Similar threads

Replies
0
Views
581
  • General Discussion
8
Replies
261
Views
22K
  • General Discussion
Replies
7
Views
2K
  • General Discussion
Replies
5
Views
789
  • Science Fiction and Fantasy Media
Replies
17
Views
3K
Replies
16
Views
1K
Replies
9
Views
1K
  • Computing and Technology
Replies
22
Views
3K
  • General Discussion
Replies
4
Views
536
  • General Discussion
Replies
1
Views
5K
Back
Top