3 ms·
Disclaimer: Like every heuristic, this is context-dependent and doesn't fit every situation. That being said, I find it helpful for top-level scripts to be "ab
by mitchellpkt 4y ago
Disclaimer: Like every heuristic, this is context-dependent and doesn't fit every situation.
That being said, I find it helpful for top-level scripts to be "about a page long" at most
e.g. often a 300 line main.py file is overkill and becomes easier to understand if compartmentalized down to a few high level components like connect(...), load(...), parse(...), etc