Title: Program Phases, A Programming Language and API Translator Subtitle: Author: Dave Mihalik Publisher: Publication date: Nov 18 2008 ISBN: 1438263295 Pages: 742 Price: 44.99 US WWW book information: http://www.programphases.com/ Book's examples: http://www.programphases.com/ Errata:
Program Phases, A Programming Language and API Translator allows programmers to quickly learn new programming languages by providing indexed example programs written in multiple programming language/API combinations.
LV 2009 Aug 1 I looked through some of the online examples provided (which unfortunately didn't include the Tcl code) and it seems to me that the goal isn't "how would a good programmer solve this problem in the language at hand" but instead "how would one literally solve the problem exactly the same as done in the other languages". In the online examples, this approach makes someone comfortable in a particular language want to scream. I noticed, in at least one of the simplest examples provided - the plain C version of Hello, world - a printf-ish line which produced a white space character in the output that didn't appear in the other programs. I also saw a comment in the perl Hello world that referred to the array $ARGV (and then used @ARGV appropriately). The web site has a web forum for people to discuss the "phases", and so hopefully examples will be corrected as people begin to provide feedback.
The site provides videos demonstrating how to install some of the languages on particular platforms.