Skip to Main Content
Single Page Web Applications
book

Single Page Web Applications

by Michael Mikowski, Josh Powell
September 2013
Intermediate to advanced content levelIntermediate to advanced
432 pages
12h 10m
English
Manning Publications
Content preview from Single Page Web Applications

Appendix A. JavaScript coding standard

This appendix covers:
  • Exploring why a coding standard is important
  • Laying out and documenting code consistently
  • Naming variables consistently
  • Isolating code using namespaces
  • Organizing files and ensuring consistent syntax
  • Validating code using JSLint
  • Using of a template that embodies the standard

Coding standards are contentious. Almost everyone agrees you should have one, but few seem to agree on what the standard should be. Let’s consider why a coding standard is especially important for JavaScript.

A.1. Why we need a coding standard

Having a well-defined standard for a loosely typed, dynamic language like JavaScript is almost certainly more important than with stricter languages. ...

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

Mastering JavaScript Single Page Application Development

Mastering JavaScript Single Page Application Development

Philip Klauzinski, John Moore

Publisher Resources

ISBN: 9781617290756Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link