I have seen this on the SO on many times. Whenever a question is vague and the question is asking some magical answer somebody or the other leaves a comment saying answer is 42. Even a book I am reading right now uses '42' as the number whenever it wants demonstrate some basic concept using an integer. So is there any history behind it or it is just a coincidence?
2 Answers
It's the answer to Life, The Universe, and Everything from Douglas Adams' Hitchhiker's Guide to the Galaxy.
- 8I thought everyone knew this. :(Nathan Taylor– Nathan Taylor2010-09-03 01:41:24 +00:00Commented Sep 3, 2010 at 1:41
- 8If I ever write a programming language I will allow for base 13 integers. Then
6 * 9will finally be 42, and the universe will instantly be replaced with something vastly more complex!! I've a feeling that this has already happened...Joe D– Joe D2010-09-17 18:32:04 +00:00Commented Sep 17, 2010 at 18:32 - 1Why in the world is this a :-(, @Nathan Taylor? Surely you're not suggesting that all programmers subscribe to some single monoculture.Andy Lester– Andy Lester2010-10-08 21:59:37 +00:00Commented Oct 8, 2010 at 21:59
- 4@Andy Lester it's not just a single monoculture, it is the monoculture.Nathan Taylor– Nathan Taylor2010-10-09 13:07:48 +00:00Commented Oct 9, 2010 at 13:07
- 1I have not read the book but I know the answer to Life, The Universe, and Everything is 42.timur– timur2011-03-16 06:29:52 +00:00Commented Mar 16, 2011 at 6:29
As Fishtoaster mentioned, the number 42 has gained pop-culture status via Douglas Adams's Hitchhiker's Guide to the Galaxy, but its true origins are from Lewis Carroll (from whom Adams gained occasional inspiration).
- 1Some of the examples in that article are pretty sketchy, especially where it starts getting into mathematical extrapolation and alternate base numbering.Fishtoaster– Fishtoaster2010-09-02 19:14:58 +00:00Commented Sep 2, 2010 at 19:14