3 ms·
Less interdepency is absolutely the key to everything. But... isn't the easiest way to show that there is little interdepency to put them in separate files tha
by Scarblac 5y ago
Less interdepency is absolutely the key to everything.
But... isn't the easiest way to show that there is little interdepency to put them in separate files that don't import from each other?
- lanstin 5y agoPeople misjudge where to draw the lines. You will have an orchestration API call that does five things and each of those five things, not used anywhere else, will get its own class, interface, factory, and configuration, so to read thru the five things you have to open like twenty files. And to notice that despite all this engineering they have static credentials in the code itself, you have to be alert across so many lines of code. The whole thing can be one longer file that reads coherently and in fact lessens the cross class importing.