DEV Community

loading...

Discussion on: 3 clean code principles for the functional programming beginner

Collapse
mattmcmahon profile image
Matt McMahon

Only thing better than a well named variable is a variable that doesn't need a name at all. Many of these functions could be written in a point-free style and composed or piped together. Add some higher order functions to simplify, e.g. filterPetsBy, and you'd have an excellent follow up to a great beginner article. 👏👏👏👏

Collapse
1crazymoney profile image
1Crazymoney

Yes you are correct sir