3 ms·
By leaving out the definition of that long function name you mask the increased cognitive load of your change. If you include the definition of your new functi
by herdrick 17y ago
By leaving out the definition of that long function name you mask the increased cognitive load of your change. If you include the definition of your new function it doesn't look like an improvement anymore.
- swolchok 17y agoWe've also left out the new code that also has to match things against js2 line endings. That said, this does require some taste. It is horrible to spread a single logical operation across multiple functions, classes, and files just for the sake of "object orientation" or "self documentation", but judicious application of bottom-up FP really helps code size and readability.