Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two strings walk into a bar...

 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
 
Kevin Workman
Ranch Hand
Posts: 151
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An infinite number of people walk into a bar. The first person goes up to the bartender and orders a full beer. The second person goes up to the bartender and orders half a beer. The third person goes up and orders a quarter of a beer. The bartender looks at them, says, "you're all a bunch of idiots," pours two full beers, and walks away.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak Bala wrote:Image too big. Source here -> http://i.imgur.com/RAyNr.jpg
To nerd for me!
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for both...
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like the first one the most. It's very geeky but who cares. The second one is nice to.
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So we're using "to" instead of "too" in this thread. I'll follow this tradition to (BTW I didn't understand both of the jokes)...
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first is related to array overrun in C, hence not understood by Java devs
In the second, the infinite geometric series 1 + 1/2 + 1/4 + 1/8 ... is equal to 2 (related to Zeno's paradox)
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That string collected lot of garbage on its way to the bar. Thats what coke and rum can do to young Strings, not null terminated.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic