Skip to Main Content
Eloquent JavaScript
book

Eloquent JavaScript

by Marijn Haverbeke
January 2011
Intermediate to advanced content levelIntermediate to advanced
224 pages
5h 43m
English
No Starch Press
Content preview from Eloquent JavaScript

Chapter 7. Modularity

Imagine a program consisting of, say, 100 different functions. By most standards, that’s a small program. If we end up changing the list of arguments passed to one of those functions, which other functions do we have to modify? If we change some of the code, how do we find out whether any of the other functions have become obsolete? If we need one of the functions for another program, how many of the other functions also have to be added to that other program, because they are used by the function we need?

If there is no organization at all to your program, finding the answer to any of these questions means going through all of the functions. There are of course tools that can help us here, such as the Unix utility grep, but, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Eloquent JavaScript, 3rd Edition

Eloquent JavaScript, 3rd Edition

Marijn Haverbeke
Learn JavaScript

Learn JavaScript

Shaun Wassell

Publisher Resources

ISBN: 9781593272821Errata