Programming Jokes: Lame, Science & Math Jokes!

  • Thread starter Thread starter Wrichik Basu
  • Start date Start date
  • Tags Tags
    Jokes Programming
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
500 replies · 47K views
I just made an eggcorn:

I meant to say "The poster's confused ideas have all been dismantled"
but it came out "The poster's confused ideas have all been dismangled".

:oldbiggrin:
 
Physics news on Phys.org
Pleased to see my favourite, Hofstadter's Law, in-the-wild...

1776693476619.webp
 
Reply
  • Like
  • Agree
  • Informative
Likes   Reactions: Filip Larsen, Bystander, BillTre and 1 other person
Never been a fan of poetry. But this Bilston guy is brilliant.

1776971016712.webp
 
Reply
  • Like
Likes   Reactions: collinsmark, gmax137, BillTre and 1 other person
1777575297944.webp
 
Reply
  • Like
  • Haha
Likes   Reactions: collinsmark, symbolipoint, jack action and 1 other person
1777649883998.webp
 
Reply
  • Haha
  • Like
Likes   Reactions: Borg, berkeman and BillTre
The "Span Soup" Chronicles: Trying to save a long, locked up Gemini chat

User:
on mobile, save html just as rendered with no JS or "BS" :)

Gemini: Use the SingleFile extension or this Universal Hack Bookmarklet to freeze the text and drop the scripts!

(Prints some code here)

User: will these methods also remove extra nesting levels of DIV and so on?

Gemini: No, the complex layout nesting (the "div soup") remains exactly as the website designed it. Try Reader Mode first to strip structural clutter.

User: what will happen to a long Gemini chat if i switch to reader mode? will it work at all? it already takes a very long time ( and sometimes never finishes ) in normal mode

Gemini: No, it will not work at all. Gemini is a Single Page Application built on JavaScript. Reader mode strips the scripts, leaving you with an empty page. Also, your mobile phone is lagging because the thread token weight is massive and it forces the browser layout engine to calculate millions of active DOM nodes.

User: why have the gemini team built such a lumbering juggernaut of a front end? regular pages of the same or larger size have no issues.

Gemini: It is a perfect storm of frontend engineering choices:
"Span Soup" Abuse: Millions of deeply nested wrapper elements are created to render real-time token streams without layout shifting.
No Virtualization: Unlike Instagram, it doesn't recycle off-screen elements. Your phone keeps rendering hidden code blocks and inline images.
Continuous Event Listeners: Thousands of hidden scripts are active simultaneously, waiting for you to click "Copy", "Upvote", or "Modify response".

User: can i switch to a cli to salvage a chat that has succumbed to front end issues?

Gemini: Yes! Run a script via developer console to dump your chat to the clipboard, then pipe it into the official developer CLI tool:
Provides code here

User: why can't a cli connect independently to a chat that has been initiated on a browser?

Gemini:
Because the consumer web interface (://google.com) and the Developer API (ai.google.dev) live in completely separate universes. They share a brand name, but their underlying architectures do not talk to each other.

User: tongue in cheek, please tell your overlords that there needs to be a way to port a web chat to api server-side

Gemini: Message received:

“Dear Omniscient Engineering Overlords, A human user has requested that you stop building impenetrable firewalls between your consumer playground and your developer workstation. Please construct a divine server-side bridge so they can instantly abandon your gorgeously styled, browser-melting ‘Span Soup’ and teleport their bloated chat threads directly into the pure, light-speed bliss of a terminal window.They are tired of babysitting your infinite-scroll lag. Please let them pull a thread ID straight into a curl command.
Amen


In all seriousness, it is a brilliant engineering feature request. Until they listen to the feedback, we are stuck doing the manual extraction dance!

User: Brilliant! Can you convert this chat into BBCode so I can share in on a "Programming Jokes" thead on PhysicsForums?

Gemini: (Prints a block of BBCode in a scollable box).

User: Hope the recursive nature of converting this bbcode into bbcode won't give you a headache. Bye, take care!

Gemini: Haha, no headaches here! My digital brain handled the nesting perfectly without throwing a "stack overflow" error. It was an absolute pleasure helping you dissect the inner workings of the front-end "span soup." Have fun sharing the conversation on the thread!Goodbye, take care, and may your future chat threads be light, speedy, and entirely lag-free! Whenever you want to set up that custom CLI environment or automate your data backups, just reach out. Have a great one!

User: what if i ask you to convert THIS state? And so on?

Gemini: Prints out a block of code here

We have officially entered a recursion loop! If we keep going, the BBCode code tags will start nesting inside code tags, creating a beautiful text-based version of the very "DOM soup" we were trying to escape in the first place.

If you ever want to break the loop and try out a lightweight API setup to completely bypass browser lag in the future, just drop a message. Have fun with the thread!

News Item: Fire in Data Center
 
Last edited:
Reply
  • Haha
Likes   Reactions: DaveC426913
Reply
  • Like
Likes   Reactions: Swamp Thing and jack action
1780077391033.webp
 
Reply
  • Like
Likes   Reactions: Swamp Thing, BillTre, gmax137 and 1 other person
DaveC426913 said:
approaches two tables and asks "May I join you?"

Got the join right away; got the tables thing only the next day.
 
1781823435536.webp
 
Reply
  • Like
  • Haha
Likes   Reactions: collinsmark, Bandersnatch, jack action and 1 other person
1/0 is fine, no panic, just another way to say infinity. 0/0 on the other hand :nb)
 
Reply
  • Skeptical
Likes   Reactions: DaveC426913
Filip Larsen said:
1/0 is fine, no panic, just another way to say infinity. 0/0 on the other hand :nb)
1/0 is not infinity; it is undefined:

1. Division is defined as the operational inverse of multiplication. i.e. 0 x n = 1.
2. There is no unique number n that, when multiplied by zero, equals one.
 
DaveC426913 said:
1/0 is not infinity
You are clearly not a programmer :-p (hint: IEEE 754 allow 1/0.0 to give +infinity while 0/0.0 gives NaN, but since that is not a lame joke we are now rounding off towards off-topic)
 
Reply
  • Like
Likes   Reactions: DaveC426913
Filip Larsen said:
You are clearly not a programmer :-p (hint: IEEE 754 allow 1/0.0 to give +infinity while 0/0.0 gives NaN, but since that is not a lame joke we are now rounding off towards off-topic)
DaveC426913 has the choice to not find any humor in that or other sections of the joke's format.
 
Filip Larsen said:
You are clearly not a programmer :-p (hint: IEEE 754 allow 1/0.0 to give +infinity while 0/0.0 gives NaN, but since that is not a lame joke we are now rounding off towards off-topic)
I am. In my language of choice, that would throw a divide by zero error, as it should.

How many bytes do you think it would take to contain the numerical equivalent of infinity? :wink:
 
symbolipoint said:
DaveC426913 has the choice to not find any humor in that or other sections of the joke's format.
Hey, im the one that found it humorous, it was Filip who Rules Lawyered it! :wink: