HACKER Q&A
📣 ilmoi

Recommend Reading on Classes vs. Functions


I'm struggling to draw a clear line in my head on when to use classes vs pure functions. I get the positives of having your functionality grouped and together in the class-based approach, but in recent projects I've been really burned by painful inheritance/mixins problems. So now I'm questioning if I should have gone pure functions all the way.

Could someone recommend some good articles / books / tutorials that touch on this topic?


  👤 Jugurtha Accepted Answer ✓