Programmers are Sages
does much more than write about Infinity, Combinatory Logic, Recursion Theory, and Gödel’s Incompleteness Theorems. And he does much more than teach these concepts delightfully by turning them into stories and puzzles to solve. He also teaches philosophy by way of insightful essays and anecdotes.
I’m going to paraphrase one of his down-home insights. This particular little story has helped me through many dark periods in my life. Raymond was talking about Taoism
, and he explained that his two pet dogs embrace the Tao. I think he described them as “Sages.”
Raymond explained that like many dogs, they preferred rich chunks of meat and gravy to dried kibble
. And like many people, Raymond had tried making the kibble more palatable by mixing in some meat with the dry dog food and pouring gravy over the whole thing.
The dogs, of course, would carefully pick the meat out and lick up all the gravy, leaving nothing but the dried kibble behind. But did they resent this? Did they howl and whine about the kibble ruining the meat? Of course not! They would wag their tails and frisk about, joyous in finding all that good meat and tasty gravy in their bowls. It was like the kibble existed in some alternate dimension that the dogs cold not perceive.
Aaah… Dogs truly are
Every time someone writes about interviewing and hiring, they are writing about judging people
. That’s really deep and meaningful to us as people: being picked or not picked, picking or not picking is pretty much all of our social structure. So when you discuss it, you are reaching deep into people’s souls.
I know this, because it hurts me when I interview for a job and the response is “thanks, but no thanks.” It hurts when people say, “you don’t have the right kind of degree
” or when they tell me that I forgot to use
when writing a SQL query to sum the sales of automobiles by brand, or that they don’t think a Black engineer would go over well with Southern clients (all true stories).
There’s almost no way1
to write about picking people without getting some heartfelt “thank you for recognizing my worth” responses. And some invective from people who feel you’re saying that you would pass them over. The fact is, there’s some unpleasant dried dog food in every post about interviews and hiring. Even if you pick something you think is obvious and unassailable.Delicious chunks of meat!
Of course, some programmers just eat the delicious meat and ignore the kibble. Look! A tasty programming problem!
I’m one of these. What was my first thought when I saw a certain notorious screening question? I thought, “Hmmm… Instead of a loop with three conditions, this could be expressed as the composition
of three functions, let’s try writing it that way.”2
A tasty chunk of thinking about programming meat!
You know, it never even occurred to me to wonder whether I fail the test and be rejected and be cast out of the herd.3
I mean, honestly, was the original author interviewing me for real? No! So why eat the dry dog food? Honestly??
But in even the most trivial problem there’s some meaty thinking to enjoy. Composing functions. Yummy.Covered in Gravy
Based on responses, the overwhelming majority of readers of this blog are Sages
Most people respond to a mixture of dried kibble and meaty chunks friskily, wagging their tails and leaping about with programming solutions and discussion about how best to solve the problem. Yummy stuff indeed.
Some people might wonder if we’re playing Stairway to Heaven
. Of course
if you walk into a music shop and yell “nobody can play Portrait of Tracy
,” everyone with a bass is going to start hitting harmonics.
That isn’t because we’re insecure and need to prove ourselves. It’s because we love playing and you just named a tune.
What can I say, I’m delighted with how many people love to play music. And I’m delighted with how many programmers love to program. For its own sake.
So thank you all for reminding me that life is all about the tasty chunks and delicious gravy.
I really appreciate it. Thank you. Especial thanks to Tom and Eric for constantly telling us all about the tender and sublime taste of Haskell. It’ll be on the menu one of these days.
Wonderful, the universe is covered in gravy!
- Well, there is one way to write about picking people without offending anyone: if you really say nothing at all. For example: At NiceCo, we conduct our interviews as conversations. We discuss each candidate’s experience and accomplishments, we canvas their views and share our objectives with them, working collaboratively to identify the most appropriate contribution they can make to the team’s success.
Now see, you can’t criticize that because it didn’t actually say anything. Maybe it’s a wonderful process involving nice people, or maybe what really happens is that they decide whether to hire you in the first thirty seconds based on some triviality like whether you have body odour. If you don’t say anything, there’s no kibble and no meat.
It’s an empty dish.
This does not mean it’s a bad process or a bad statement. But the process isn’t reproducible from the statement alone. That’s the exact sense in which I say that the statement is empty.
- This separates the concern of how to generate the list from the concern of how to transform the list. Someone posted a variation with different conditions: you can simply generate a new transformation function by composing two of the exiting functions with two new functions, more or less. And if someone asked for the same thing in Ancient Rome, you could write a different generator that generated the numbers from
- Don’t bother writing to say that my confidence is the reason why: I recall failing a technical interview when I brain cramped and was unable to write a program to print the first 100 prime numbers. I’m not that smart.