3 ms·
Unfortunately, 'code that goes together' is rarely "all these 3 things go together", but more "a and b goes together in one way, b and c in another, and a and c
by tpoacher 5y ago
Unfortunately, 'code that goes together' is rarely "all these 3 things go together", but more "a and b goes together in one way, b and c in another, and a and c in another. Meanwhile, c is more naturally contextualised as d, which has nothing to do with a or b, so it should really be close to d and far away from a and b, but somehow still close" etc etc ad nauseam.
So, really, the only real way to keep functions linked is to not be lazy, and try to have proper documentation locally in your function which includes a "see also" bit.
- z3t4 5y agoI would put all those in the same file. I only turn functions into modules if they are imported/linked in other programs.
- EVa5I7bHFq9mnYK 5y agomaybe code in multiple-dimensions? Metaverse!
- z3t4 5y agoMulti process/threaded programming is multi dimensional.