You are viewing a single comment's thread from:

RE: Writing Good and Readable Functions: Clean Code!

in #programming7 years ago

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.