The Preparation of Programs for an Electronic Digital Computer (sometimes called WWG, after its authors' initials) was the first book on computer programming. Published in 1951, it was written by Maurice Wilkes, David Wheeler, and Stanley Gill of Cambridge University. The book was based on the authors' experiences constructing and using EDSAC, one of the first practical computers in the world.
It was the first book to describe a number of important concepts in programming, including:
Much of the book is dedicated to explaining the library. This consisted of eighty-eight subroutines implementing mathematical operations like the calculation of trigonometric functions and arithmetic operations on complex numbers. The library was a physical collection stored in a filing cabinet containing punched paper tape encoding the subroutines. This included a "library catalog" describing how a programmer could use each subroutine; today this is called API documentation.
The 1951 book was a mass-printed version of a report titled Report on the Preparation of Programmes for the EDSAC and the Use of the Library of Subroutines written in September 1950 for private circulation and distributed to no more than 100 people. Though written in England, the book was published by Addison-Wesley in the United States.
At the time WWG was published there were very few digital computers in the world. EDSAC, on which the book was based, was the first computer in the world to provide a practical computing service for researchers. Demand for the book was so limited initially that it took six years to sell out the first edition. As computers became more common in the 1950s, the book became the standard textbook on programming for a time. The second edition was printed in 1957. By that time, technology had advanced to the point that WWG was somewhat outdated.
Though WWG was the first published, book-length treatment of computer programming, it was not the first writing on the topic. The subject of programming had been pioneered by Ada Lovelace more than a century prior. It had also been written about more recently by John von Neumann, whose EDVAC Report of 1945 initially inspired Wilkes to create EDSAC.
Edited: 2021-06-18 19:33:32