Ask HN: best programming language for a programming book?
Example: "Programming Collective Intelligence" uses examples in Python to explain the data mining algorithm it presents.
I am almost tempted to pick JavaScript, as this is the common language every web developer should know anyway.
I would like to use Ruby+Rails, but I fear it might be too complicated to explain. I want to spend as little time as possible on framework specifics.
I was really impressed by the brevity of the Python examples in the Collective Intelligence book. Unfortunately I don't know Python yet.
The publisher who might be interested in publishing the book pointed to PHP as still being among the most popular languages for such tasks (along with Java), but I would like to avoid that.