We spent a lot of the last chapter discussing how functions can help to give your scripts a nice, clear structure — especially when you choose them wisely and name them sensibly! One of the techniques we looked at dealt with nesting functions inside one another. That way, we can break down any complex task into a few slightly simpler subtasks, break each of those down into even simpler sub-subtasks, and so on, until each one reaches a level where it just needs a few simple actions to do its job. We end up with lots of short, tightly focused functions, each playing its own special part in the overall movie script.
KeywordsObject Class Text Field Object Instance String Class Constructor Function
Unable to display preview. Download preview PDF.