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 ...

Get Pro JavaScript™ Techniques now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.