Discussion about this post

User's avatar
David Ungar's avatar

Kent, you solved this one last century in your Best Smalltalk Pattern Practices book. Apologies if I mangled the title. One function per intention. It puts the spotlight on the real question: the granularity of intentions. Or, in L Peter Deutsch language, the granularity of the invariants in that part of the program.

Expand full comment
Wyatt Barnett's avatar

I wonder how function length compares to “popularity” of the function at runtime. My experience is those 74 line monsters are doing a lot of work and are often crucial to the critical path. In fact the complexity is what often defies refactoring into better more succinct steps.

Expand full comment
13 more comments...

No posts