Rules for Moldable Development for Glamorous Toolkit
Examples are like tests that return objects annotated with <gtExample> . Always build relevant examples for new code. Always run relevant examples to validate changes and ensure they are green.
Views describe objects. They are implemented in methods of the class of the object, and are annotated with <gtView>. Views should document the intent. Examples can be combined with views to express narratives. Examples produce objects, views compress intent.
Packaging:
Example methods should be in classes named *Examples.
Examples are typically added in an Examples tag. Ocassionally, they can be in a separate Examples package.