Answer the question
In order to leave comments, you need to log in
when I write a function. How to understand - when to create a class for it, and when to write it in a Helper type class (i.e. a class for auxiliary functions)?
when I write a function. How to understand - when to create a class for it, and when to write it in a Helper class (ie a class for auxiliary functions)?
Answer the question
In order to leave comments, you need to log in
A helper class or file is usually a bad idea. It attracts garbage and bicycles.
There is nothing wrong with individual functions. But if you get used to OOP, then most functions naturally become class methods.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question