DEV Community

Discussion on: Code Smell 89 - Math Feature Envy

 
mcsee profile image
Maxi Contieri

Hi again

Thanks for the comment.
I am not an expert on Functional Programming.
I'll stick to OOP, my area of knowledge.
Calculating the area of a shape (and how it does) it is shape's reposibility.
Example is on the article above.
Doing external manipulations is a code smell, according to my opinion