Friday Finking: Source code organisation
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Dec 31 00:29:41 EST 2019
On 31/12/19 3:47 am, Barry Scott wrote:
> "define before use" is basically email top-posting for code isn't it?
>
> It means that the first things that you read in a module are the least interesting.
That's not a big problem for top-level code, since you can easily
scroll down to the bottom of the file and work backwards.
But it's not so easy for classes if you have more than one class
in a file. That might be part of the reason I do things the
opposite way in classes.
--
Greg
More information about the Python-list
mailing list