Re:Greppability is an underrated code metric
by medstrom on Tuesday September 03, 2024 @06:56AM
(#41433524)
I feel there are a few ways to invoke .map() in a readable way and many ways that make the code flow needlessly indirect.
Should be a judgment call, and the author needs to be used to doing both looping and mapping constructs, so that they are unafraid of the bit of extra typing needed for the loop.
Should be a judgment call, and the author needs to be used to doing both looping and mapping constructs, so that they are unafraid of the bit of extra typing needed for the loop.