Best Practices

Best practices for JavaScript fall into several categories and are handled at different points in the development process. Writing maintainable code is important because most developers spend a large amount of their time maintaining other developers' code. One of the simplest ways to start writ...

Full description

Saved in:
Bibliographic Details
Published in:Professional JavaScript for Web Developers pp. 1035 - 1065
Main Author: Frisbie, Matt
Format: Book Chapter
Language:English
Published: United States John Wiley & Sons, Incorporated 2019
John Wiley & Sons, Inc
Subjects:
ISBN:1119366445, 9781119366447
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:Best practices for JavaScript fall into several categories and are handled at different points in the development process. Writing maintainable code is important because most developers spend a large amount of their time maintaining other developers' code. One of the simplest ways to start writing maintainable code is to come up with code conventions for the JavaScript that one writes. Professional organizations have long instituted code conventions for developers in an attempt to make code more maintainable for everyone. This chapter discusses the basics of how to develop code conventions. As with other languages, part of the performance equation has to do with the algorithm or approach used to solve the problem. Skilled developers know from experience which approaches are likely to achieve better performance results. The number of statements in JavaScript code affects the speed with which the operations are performed.
ISBN:1119366445
9781119366447
DOI:10.1002/9781119366560.ch28