About the Talk
September 13, 2009 10:45 AM
Microsoft CambridgeMicrosoft Cambridge
When you move beyond simple snippets of jQuery and start developing more complex user interactions and applications, your code can quickly become unwieldy and difficult to debug. This talk will show you how to start thinking about your code in terms of the bits of behavior it comprises, and will teach patterns for code organization.
We'll start by looking at jQuery code that doesn't use any organizing pattern, and point out where issues can arise when the code needs to be debugged or modified. We'll move on to look at how the object literal pattern can be used to solve these challenges by encapsulating features and centralizing configuration options. Finally, we'll look at organizational patterns that allow for private variables and methods.