re: When do you create a function or method? VIEW POST


I tend to do it when I want to share a piece of code, except when that would increase complexity somehow. Or when there's a big chunk of functionality that's self contained and would improve the readability of the thing calling it.


That's how I roll as well. The hardest question is when does it increase complexity?

code of conduct - report abuse