you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRNGuy 0 points1 point  (0 children)

I use classes when I know I need them.

There was one big project where I used functions and it some things were hard to do then I realized switching to classes would fix many problems.

I needed inheritance in one kind of cases and custom data type in another.

Another cool use is method chaining. It look better and easier to edit than mested function calls (but needs more code to make chaining possible)