3 ms·
> In addition, that code example is easily testable. I'm skeptical, because typically a line like that is embedded in the middle of a larger function. Extract
by macintux 4y ago
> In addition, that code example is easily testable.
I'm skeptical, because typically a line like that is embedded in the middle of a larger function.
Extracting the logic into a dedicated, pure function helps with testing.