2 ms·
Not if you're not used to it. Literally had this over the past few months working with a junior programmer who had a really hard time understanding stacked map(
by marcus_holmes 6y ago
Not if you're not used to it. Literally had this over the past few months working with a junior programmer who had a really hard time understanding stacked map()s and filter()s but understood them easily when I unrolled them into nested for loops.
- eweise 6y agoThe junior programmer would have been much better off learning how a filter function works so they could be productive in almost every other language besides Go.
- marcus_holmes 6y agoThis was Javascript. And yes, I was teaching him how filter functions worked. But the point remains that if you're not used to them, map() and filter(), especially when stacked, are not that readable.