21.09.2011, 10:41
When I say always good, I mean for learning purposes.
You will find that something as simple as calling code from a function, as opposed to directly including that code can cause significant delays (where heavily looped processing is involved at least). But if this same block of code is needed many times, it's no longer realistic to include it directly.
In the end it's up to you, experimenting like this is great for learning and sometimes you can find some amazing results, but as has been said it boils down to an old saying, if it ain't broke then don't fix it! .
You will find that something as simple as calling code from a function, as opposed to directly including that code can cause significant delays (where heavily looped processing is involved at least). But if this same block of code is needed many times, it's no longer realistic to include it directly.
In the end it's up to you, experimenting like this is great for learning and sometimes you can find some amazing results, but as has been said it boils down to an old saying, if it ain't broke then don't fix it! .