3 ms·
>> how do you decide which ones to inline Use whichever setup maximizes readability. Lift code out into functions if it's a logical, reasonably self contained
by m0zg 8y ago
>> how do you decide which ones to inline
Use whichever setup maximizes readability. Lift code out into functions if it's a logical, reasonably self contained block used 3 or more times. Use your best judgment, in other words. If you require me to jump around the file (or worse, files, plural) to read your code, make sure there's a good reason for all this cognitive overhead.