REVIEW - Constructing the User Interface with Statecharts


Title:

Constructing the User Interface with Statecharts

Author:

Ian Horrocks

ISBN:

Publisher:

Longman (1999)

Pages:

253pp

Reviewer:

Derek Graham

Reviewed:

February 2000

Rating:

★★☆☆☆


The author of this book firmly believes that the rise of so-called 'Visual' development tools has led to the creation of GUI-based applications that are wholly dependent on the GUI framework and are constructed in a largely ad-hoc fashion. This leads to a pathological coupling between interface and application with all the associated maintenance and quality nightmares. This book then is an attempt to apply a little engineering and architectural design to an application interface in the hope of creating something that is more flexible, maintainable and robust.

The book starts with chapters on UI construction issues and introduces the idea of a 'user interface - control - model' architecture. The author uses a simple CD player application to demonstrate the superiority of the statechart notation over more conventional state transition diagrams.

Several chapters go on to discuss the statechart notation and the practical issues involved in producing consistent diagrams for an event-driven application design. This was the most useful section of the book, in my opinion, containing many heuristics and tests, which can be used to check your designs.

There are chapters devoted to three case studies; a calculator, a help-desk system and the ubiquitous student database. These serve to expand on the points made in the previous chapters. At the end of the book are chapters on coding and testing together with an evaluation of the techniques presented.

The thing that stops me from recommending this book whole-heartily is the chapter on translating the design into actual code, which is crammed into 13 pages. The argument to use statecharts is let down badly by the code examples, which are in some weird Basic-like pseudocode. This obscures rather than illustrates the intention of each example. I would like to see examples in a range of specific languages such as C++, VB and Delphi.

A very good starting point for designing and documenting an interface but not the complete answer.


Book cover image courtesy of Open Library.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.