DEV Community

Discussion on: What would you call this function?

Collapse
 
pencillr profile image
Richard Lenkovits

Cool stuff. I would name it by looking at what it does functionally, not methodically. So I would name it this way, something like: propertyPath, extractPath, accessMap.

Collapse
 
nombrekeff profile image
Keff

Nice approach, I was thinking about it a bit, but couldn't come up with any good ones.
Is there any reason not to pluralize it, like: extractPaths?

Collapse
 
pencillr profile image
Richard Lenkovits

Yeah you could do that sure.