Can functions be used too much in a program?
The reason I ask is I like using functions, and having the main contain very few lines.
I was left wondering though if the use of so many functions is as efficient as writing the code directly into the main. (On bigger projects I can see that functions are the only way to keep organized, but from lack of wisdom I do not know if it is more or less efficient in that environment as it is in a small program.)
In what situations are functions used too much, and the opposite?
At what point would you consider functions unnecessary?
Performance wise is it better to have functions which contain multiple different processes or to have multiple functions with less processes?
I hope you can see what I am questioning in my mind. I do not want to use functions too much in the wrong situations, and I want to use them in the best situation.
I do not know what those situations are.
Any opinions to help me develop my understanding on this would be greatly appreciated.