Appendix A. Coding Tips

Coding is a type of writing. Like all types of writing, code has specific rules. For comparison, we’ll quickly mention some of the rules for English that you probably haven’t thought about in a while because they are second nature.

Some of the more invisible rules are writing from left to right and putting a space between each word. More overt rules are spelling conventions, capitalizing the names of people and places, and using punctuation at the end of sentences to provide emphasis! If we break one or more of these rules when writing an email to a friend, the message still gets through. For example, “hello ben. how r u today” communicates nearly as well as, “Hello, Ben. How are you today?” However, flexibility with ...

Get Getting Started with p5.js 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.