This week's book giveaway is in the XML and Related Technologies forum.
We're giving away four copies of Java XML & JSON and have Jeff Friesen on-line!
See this thread for details.
Win a copy of Java XML & JSON this week in the XML and Related Technologies forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

camel++  RSS feed

 
author & internet detective
Posts: 39128
723
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw this on twitter. So a camel plus one is another camel?

 
Saloon Keeper
Posts: 2134
80
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:.. So a camel plus one is another camel?...


Count the humps
 
Marshal
Posts: 62803
203
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But this gets really scary: In that case . . .
what do you call a camel with one hump?
What do you call a camel with two humps? camel++
What do you call the camel now?
 
Sheriff
Posts: 5662
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The one-hump camel is actually a dromedary.  Two humps is a true camel.  So

   ++dromedary == camel
 
Campbell Ritchie
Marshal
Posts: 62803
203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, adding one to a dromedary gives you a Bactrian camel. And what do you get if you increment that further?
 
Knute Snortum
Sheriff
Posts: 5662
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An abomination.
 
Campbell Ritchie
Marshal
Posts: 62803
203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right. And by the way, there are enough hints in that Twitter article to allow me to verify that I can convert 🐪 to 🐫 in Java® too.
 
salvin francis
Saloon Keeper
Posts: 2134
80
Eclipse IDE Google Web Toolkit Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:...And what do you get if you increment that further?


Reminds me of an old joke ...

Q: What would you call a camel with 3 humps ?
A: Pregnant

 
Campbell Ritchie
Marshal
Posts: 62803
203
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer I know to that riddle is different.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!