O'Reilly logo

Pro JavaScript™ Techniques by John Resig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 3Creating Reusable Code

When developing code with other programmers, which is standard for most corporate or team projects, it becomes fundamentally important to maintain good authoring practices in order to maintain your sanity. As JavaScript has begun to come into its own in recent years, the amount of JavaScript code developed by professional programmers has increased dramatically. This shift in the perception and use of JavaScript has resulted in important advances in the development practices surrounding it.

In this chapter, we're going to look at a number of ways in which you can clean up your code, organize it better, and improve the quality so that others can use it.

Standardizing Object-Oriented Code

The first and most important ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required