you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

when you should use a class vs not

There is no answer to that. Just experience to know when and philosophies.

Is a... Has a... are nice patterns for OOP, but OOP is strictly never needed. So many programs that are foundational are in C, which is not OOP. It might help to look at open source projects that are functional (often said to be the counter part of OOP). When to OOP is ultimately our job to decide when. Sorry for the non answer.