• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Deeper into Lingo > A comment about comments

A comment about comments

In the scripts we created in the previous chapters, nearly every word of every statement has been written with the intent that it would be read and acted on by Director. That's okay for short handlers and small projects—especially if we don't expect those projects to be around much past the next chapter. How ever, once you get into writing Lingo, as opposed to learning Lingo, you're going to find that brevity pretty limiting.

Typically, what happens is something like this: You're working on a project and realize that you need to create a new handler. You stop what you're doing and pop open a script editor and, in a flash of insight, see a concise, interesting, and elegant way to achieve the results you want. You quickly write the 100 or so lines of Lingo that you need, give it a quick test (sure enough, it works), and go back to what you were doing before. Three weeks later, your boss and client inform you that what they really want is a cloaking device rather than the shirt-of-invisibility you had discussed previously. You need to modify the handler, so you open it up to make the changes. You stare at the code, and all you can do is wonder who the heck wrote this thing. Whatever bit of cognitive leap that inspired the handler in the first place is missing today (someone changed the brand of coffee in the cafeteria). You can't even figure out what those cryptic variable names are supposed to be referencing.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint