Ok I appreciate the helpful discussion, this will inform my future practice. To wrap up, I think the takeaways are:
a, use your head, don't let convention override reason
b, In general, keep module imports at the top of the file organized by type & package with the caveat that a large # of imports (say more than 10 or 20) may indicate the module is too ambitious and is a candidate for refactoring.
Comments
Ok I appreciate the helpful discussion, this will inform my future practice. To wrap up, I think the takeaways are:
a, use your head, don't let convention override reason b, In general, keep module imports at the top of the file organized by type & package with the caveat that a large # of imports (say more than 10 or 20) may indicate the module is too ambitious and is a candidate for refactoring.