-
Building Application with Spec 2.0
Koen De Hondt, Stéphane Ducasse
- Books on Demand
- 27 Octobre 2024
- 9782322478712
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 subelements as well as domain objects.
With Spec, existing presenters or even complete UIs are reused and configured to form a new user interface. Spec is 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 reuse of user interface elements. 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:
- Deep explanations of various Spec 2.0 facets.
- A tutorial gets you started in less than 20 minutes.
- A minimal email client revisiting all Spec 2.0 features. -
What is the class Object? What is the class Class? Why the class Object is an instance of the class Class? If you ever ask yourself such questions, this book is for you.
After explaining the impact of representing classes as objects, you will develop step by step a minimal reflective kernel.
In this book you will learn:
- object instantiation, allocation, and initialization, - classes as objects,
- description of classes,
- creation of classes,
- method lookup and error handling,
- examples of metaclasses,
- bootstrap of a reflective system.
The content of this book has been used to teach reflective architectures for more than 15 years.