Application Building with Spec 2.0

Pharo is a clean, innovative, open-source, live-programming environment.

This book explains the new version of the UI framework for Pharo, called Spec.

About This Book

Spec is the default UI building framework for Pharo. With Spec, developers focus on user interaction and widget layout. Spec is built around the Model View Presenter pattern. Presenters are responsible for defining the interaction logic of the application. They enforce the interaction of their sub-elements as well as domain objects.

With Spec, existing presenters or even complete UI’s are reused and configured to form a new UI. Spec is a widget framework (GTK, Morphic, Toplo) agnostic. It makes desktop applications simple to build.

This book shows the basics of Spec in Pharo 12 and how it enables the reuse of UIs. It focuses on Spec 2.0 features such as new widget layouts, dynamic widget building and more advanced features such as transmissions or commands.

The book contains:

Authors