3 ms·
There’s a balance to be struck if most of the Do methods need a common and/or interdependent set of parameters. Inlined code can be clearer because you can dire
by layer8 4y ago
There’s a balance to be struck if most of the Do methods need a common and/or interdependent set of parameters. Inlined code can be clearer because you can directly see how/why those parameters are used. You rarely have
DoThis();
DoThat();
DoTheOtherThing();
Instead you usually have something like:
x = DoThis(a, b, c);
y, z = DoThat(c, x, a);
w = DoTheOtherThing(a, z, x, y, b);
…and on top of that have to add error handling for those calls.