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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.