Collection of Science Jokes P2

In summary: Usually it's been commentated as being 'real'. Actually the joke dates back to the 30's and whether it's real or not cannot be said anymore.
  • #2,171
An oldie but goodie
centrifugal_force.png
 
  • Like
  • Haha
Likes DrClaude, berkeman, collinsmark and 4 others
Physics news on Phys.org
  • #2,172
Screen Shot 2021-04-06 at 1.25.08 PM.png
 
  • Like
  • Haha
Likes DennisN and collinsmark
  • #2,173
Screen Shot 2021-04-09 at 2.30.49 PM.png
 
  • Like
  • Love
Likes pinball1970, collinsmark and Ibix
  • #2,174
171025537_782277835727986_4002334356925875638_n.jpg
 
  • Like
  • Haha
Likes hmmm27, pinball1970, strangerep and 9 others
  • #2,175
_nc_ohc=0qI3HH3JuIUAX-ZHYLE&_nc_ht=scontent-dus1-1.png
 
  • Like
  • Haha
  • Love
Likes EHope, pinball1970, Keith_McClary and 3 others
  • #2,176
3mzipjsz7tp61 (1).gif
 
  • Like
  • Haha
Likes DennisN, pinball1970, collinsmark and 2 others
  • #2,177
Take your age, add three, then subtract three. That's your age.
In JavaScript it's your age plus 0.000000000001567.
Or 10 times your age, if you take your age as string.
Code:
var a="123"
var b=a+3
var c=b-3
document.write(c)

--> 1230
 
  • Haha
  • Wow
  • Like
Likes Filip Larsen, jack action, pinball1970 and 1 other person
  • #2,178
I am afraid for the calendar..

It's days are numbered.
 
  • Like
  • Haha
Likes EHope, Ibix, DennisN and 4 others
  • #2,179
mfb said:
In JavaScript it's your age plus 0.000000000001567.
Or 10 times your age, if you take your age as string.
Code:
var a="123"
var b=a+3
var c=b-3
document.write(c)

--> 1230
So + is defined for strings so 3 is cast to string and b gets the value "1233", but - isn't defined for strings so b gets cast to integer and c is 1230? That's nasty...
 
  • Like
Likes DrClaude and etotheipi
  • #2,180
pinball1970 said:
I am afraid for the calendar..

It's days are numbered.
You hear about the guy who got fired from the calendar factory? He took a day off.
 
  • Like
  • Haha
Likes atyy, Ibix, mfb and 4 others
  • #2,181
phinds said:
You hear about the guy who got fired from the calendar factory? He took a day off.
McKinsey was hired by the manufacturer. They found out, that costs could be reduced by a factor 1/364 if all calendar pages are printed with "Today".
 
  • Like
Likes atyy and jack action
  • #2,182
Employees have been requested to use pogo sticks while on the calendar factory's ground. It was a leap year.
 
  • Like
Likes jack action and pinball1970
  • #2,183
Ibix said:
So + is defined for strings so 3 is cast to string and b gets the value "1233", but - isn't defined for strings so b gets cast to integer and c is 1230? That's nasty...

fresh_42 said:
McKinsey was hired by the manufacturer. They found out, that costs could be reduced by a factor 1/364 if all calendar pages are printed with "Today".
I may take these jokes to the homework helper section, 'Explain why these are funny.'
 
  • #2,184
pinball1970 said:
I may take these jokes to the homework helper section, 'Explain why these are funny.'
1618668334048.png
 
  • Like
Likes Keith_McClary
  • #2,185
fresh_42 said:
I have one of these electronic calendars. If you hit the → key, it says "Tomorrow" and if you hit the ← key, it says "Yesterday".
 
  • Like
Likes phinds and pinball1970
  • #2,186
Ibix said:
So + is defined for strings so 3 is cast to string and b gets the value "1233", but - isn't defined for strings so b gets cast to integer and c is 1230? That's nasty...
Yes. JavaScript is full of these odd features.
string=('b'+'a'+ + 'a' + 'a').toLowerCase() produces "banana".
'b'+'a' is regular string concatenation. The next term is " +'a' ", so JS tries to convert 'a' to an integer which produces NaN. That can be converted to a string ("NaN"), so it can be concatenated. Add the final "a" to get "baNaNa", and toLowerCase obfuscates the process a bit.

!null is true. So is null==false? No, it is not. Both null==false and null==true evaluate to false.
Exactly the same for undefined.
But what you can do: undefined==null is true.
NaN == NaN is false.

!null+""+ +'a' produces the string "trueNaN".
 
  • Like
  • Wow
  • Informative
Likes phinds, jack action, Wrichik Basu and 2 others
  • #2,187
mfb said:
JavaScript is full of these odd features.
I've used Javascript a few times and was aware that its type conversion was... interesting, but I hadn't realized quite how interesting.
 
  • #2,188
This reminds me of the time I saw a price ticket on a supermarket shelf which told me that the price of a product was 95p and the price per 100g was NaNp.
 
  • Like
  • Haha
Likes jack action, Ibix and etotheipi
  • #2,189
DrGreg said:
This reminds me of the time I saw a price ticket on a supermarket shelf which told me that the price of a product was 95p and the price per 100g was NaNp.
Which, of course, implies that 95 = NaN in SI.
 
  • Like
Likes Ibix
  • #2,190
kuruman said:
Which, of course, implies that 95 = NaN in SI.
Or that the object for sale was a photon.
 
  • Like
Likes Ibix
  • #2,191
kuruman said:
Which, of course, implies that 95 = NaN in SI.
I suspect that 0+"95p" probably does equal NaN in Javascript...
 
  • #2,192
1618774286822.jpeg
 
  • Like
Likes PhDeezNutz, atyy, DennisN and 1 other person
  • #2,193
1618774338386.jpeg
 
  • Like
Likes EHope, atyy, PhDeezNutz and 1 other person
  • #2,194
1618774517395.jpeg
 
  • Like
Likes atyy, mfb, Keith_McClary and 1 other person
  • #2,195
Screen Shot 2021-04-19 at 7.49.17 AM.png
 
  • Like
Likes DennisN, collinsmark and fresh_42
  • #2,196
How many number theorists does it take to change a lightbulb?
Nobody knows the exact number, but it is believed to be an elegant prime.
 
  • Like
  • Haha
Likes Keith_McClary, jack action, DennisN and 1 other person
  • #2,197
In biology,
you can divide to multiply.
 
  • Like
  • Love
Likes pinball1970, collinsmark, Wrichik Basu and 2 others
  • #2,198
etotheipi said:
How many number theorists does it take to change a lightbulb?
Nobody knows the exact number, but it is believed to be an elegant prime.
How many psychologists does it take to change a lightbulb?
Only one, but the lightbulb has to want to change.
 
  • Like
Likes berkeman, Wrichik Basu, jack action and 1 other person
  • #2,199
Let ##\epsilon < 0##
 
  • #2,200
Are you a Hilbert Space? Because you complete me <3.
 
  • Like
Likes DennisN
  • #2,201
0!=1.jpg
 
  • Haha
  • Like
Likes DennisN, Ibix, Wrichik Basu and 1 other person
  • #2,202
main-qimg-d1cab6d66f1800a7fa010cfd576c5022.jpeg
 
  • Like
  • Haha
Likes atyy, davenn, Jarvis323 and 6 others
  • #2,203
Screen Shot 2021-04-29 at 1.55.34 PM.png
 
  • Like
  • Sad
Likes strangerep, Wrichik Basu and fresh_42
  • #2,204
Screen Shot 2021-05-02 at 1.33.52 PM.png
 
  • Haha
  • Like
Likes DennisN, collinsmark and jack action
  • #2,205
Screen Shot 2021-05-03 at 6.55.59 AM.png
 
  • Like
  • Haha
Likes DennisN, collinsmark and Keith_McClary

Similar threads

Replies
412
Views
25K
Replies
50
Views
5K
Replies
17
Views
4K
Replies
5
Views
2K
Replies
2
Views
2K
Back
Top