Exercises in Programming Style

Cristina Videira Lopes

June 2, 2014 by Chapman and Hall/CRC
Reference - 304 Pages - 27 B/W Illustrations
ISBN 9781482227376 - CAT# K22536


Add to Wish List
FREE Standard Shipping!


  • Presents a comprehensive collection of programming styles using a simple computational task, term frequency
  • Uses constraints as a unifying principle for explaining style in software systems
  • Includes end-of-chapter exercises that test readers’ understanding of each style
  • Offers suggestions for further reading that are useful for graduate students
  • Provides the code on a supporting website
Visit the author's website for more details on software and programming.


Using a simple computational task (term frequency) to illustrate different programming styles, Exercises in Programming Style helps readers understand the various ways of writing programs and designing systems. It is designed to be used in conjunction with code provided on an online repository. The book complements and explains the raw code in a way that is accessible to anyone who regularly practices the art of programming. The book can also be used in advanced programming courses in computer science and software engineering programs.

The book contains 33 different styles for writing the term frequency task. The styles are grouped into nine categories: historical, basic, function composition, objects and object interactions, reflection and metaprogramming, adversity, data-centric, concurrency, and interactivity. The author verbalizes the constraints in each style and explains the example programs. Each chapter first presents the constraints of the style, next shows an example program, and then gives a detailed explanation of the code. Most chapters also have sections focusing on the use of the style in systems design as well as sections describing the historical context in which the programming style emerged.