flash q
flash q
Out of context: Reply #9
- Started
- Last post
- 17 Responses
- Solid0
so is it better to wrap everything up in functions or execute directly?
imakedesign
--------I would recommend using functions in your project.
The key is to design your functions to be efficient. Why call a function repeatedly if you can design your app in a way that requires only one function call (although this isn't always the best approach either ..).
Also (without turning this into an OOP discussion) start thinking about the relationships between your functions, as well as the "why" in the way you break up your code into functions.
Eg. what should or shouldn't be written as a separate function? How do these functions relate to each other, work together, etc.