From Signs to Patterns
Robert Jeansoulin · 2018
This chapter presents several notions about the signs and words used in JavaScript. It explores how the signs and words interact with the syntax. The chapter describes how to use programming constraints to style a more readable and robust code and a few hints about meta-programming. In any language there are reserved words, sacred or forbidden, and one must replace them. In any language, punctuation plays a role in the interpretation. In any language there are pronouns, a grammatical form referring to another form, and whenever referencing, ambiguities may occur. Keywords, punctuation signs and a misused pronoun are often error prone in JavaScript. The chapter discusses some programming best practices: design patterns. In object-oriented programming, any instruction is in the context of one object: the global object or a particular object. Data are often exchanged over the Internet in text files using JSON format.