next up previous contents
Next: Attributes Up: Style Guide Previous: Exemplars or Value Objects   Contents

Naming Methods

One of the primary benefits and peculiarities of the Smalltalk family's style of method syntax is that it provides an opportunity to name one's protocols using something resembling a phrase. Usually, it is recommended to re-use protocols whenever describing similar behaviors, as an aid to the user's memory in matching functionality to a name to call; in some exceptional situations, different protocols are helpful when there is more than one desired algorithm or behavior to provide for a kind of object. Here are some general practices which have been brought forward from years of Smalltalk practice.



Subsections

Brian Rice 2004-08-24