2 ms·
It really all boils down to cognitive load: Can the average dev keep all of the variable states & side effects of the function in your head as they read throug
by nevir 3y ago
It really all boils down to cognitive load:
Can the average dev keep all of the variable states & side effects of the function in your head as they read through it? Great! Linear may be a good fit.
Or does one need to jump up and down in the function to /really/ understand it? Probably time to consider abstracting it.