Settings

Theme

Ask HN: Recommend Reading on Classes vs. Functions

2 points by ilmoi 4 years ago · 3 comments · 1 min read


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 4 years ago

Similar thread: https://news.ycombinator.com/item?id=3717715

  • ilmoiOP 4 years ago

    this is actually awesome, thanks so much for sharing

    • Jugurtha 4 years ago

      You are welcome. There are a couple of books (editions) by Brett Slatkin titled "Effective Python: [59|90] Specific Ways to Write Better Python". 59 for the first edition, 90 for the second. There's also a video course.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection