vertical ordering of functions
Grant Edwards
invalid at invalid.invalid
Tue May 3 21:09:39 EDT 2011
On 2011-05-03, Jabba Laci <jabba.laci at gmail.com> wrote:
> I'm just reading Robert M. Martin's book entitled "Clean Code". In Ch.
> 5 he says that a function that is called should be below a function
> that does the calling. This creates a nice flow down from top to
> bottom.
I generally expect the opposite: callees above, callers below, main at
the bottom. However, that's mostly just a habit left over from C
programming where such an ordering avoids having to litter the file
with forward declarations for functions.
--
Grant
More information about the Python-list
mailing list