Eric, I love you, but chances of a regular dev come up with a good abstraction as map() are extremely low. You can only extract one from a big project, when you see repititive parts all around. And even then you need some luck.
There is a cogniteve illusion that is easy to find abstractions cuz we build application from well defined libraries.
Devs shoot themself into a foot trying to extract stuff, writing layers of models. This is current industry standard.


Freelancer (Upwork Top Rated Plus). Full-stack Azure cloud developer. JavaScript and TypeScript connoisseur.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store