Intent Revealing NameThe book has now been published and the content of this chapter has likely changed substanstially.
How do you make code easily understood?
Paraphrased from "Intent Revealing Method Selector" in Kent Beck's "Smalltalk Best Practice Patterns":
Name your methods (and variables) based on the intent of the user (caller for methods). Describe the goal they would seek to fulfil, not the mechanism or algorithm used to fullfil it.
Further ReadingThis is described in Kent Beck's "Smalltalk Best Practice Patterns" [SBPP] as a best practice in the smalltalk community.
Copyright © 2003-2008 Gerard Meszaros all rights reserved