Except that functions should also be used for a specified task. So if a function is long and complex but the only time the components get called is in the function then it can be detrimental and increase chance of a memory leak to send data throughout multiple functions. If your function is only called once in your code then it might as well as just be some inline code.
You are viewing a single comment's thread from: