A friend asked me a question, a while ago, stating:
Hey Jan, One stupid question around which I have thought a lot and often get stuck while deciding. When to make a function static/non-static specifically the helpers or utility ones.
I read 2 arguments
All the functions that don’t need to use a state of the object, (don’t update any variable value of the object ) should be static. All the functions that should/can be test independently and have some logic.
Read more →