Conventions and The Friendly Manual(s)
The conventions you can expect and the reference materials you can count on.
Table of Contents
RTFM
“Learning to program is an iterative, systematic process of eliminating magic.” – source
And how does one eliminate magic? By learning to Read The Friendly Manual.
These notes are to be considered the manual for this course. Reference these notes first before turning to Google or Stack Overflow.
Secondary Sources
These secondary sources should also be considered manuals you should consult before Goolging:
- Modern Javascript Ebook @ Javascript.info
- Javascript Reference @ Mozilla Developers Network
- P5.js Reference API
- P5.js Code Cookbook
- Official P5.js Tutorials
Help Improve These Notes
You can help improve these notes in three ways:
- If there are topics you feel are missing from these notes please inform your instructor.
- Anytime you come here looking for an answer that you then cannot find, email kgeske@rrc.ca.
- You can submit a pull request to fix typos, debug code samples, and update explanations using the “Edit this page on Github” link at the bottom of every page.
Documentation Conventions
Through the notes you will see the following three types of labels.
🎵 Note:
Notes add important information you don’t want to miss.
⚡ Warning:
Warnings are provided to prepare you for common bugs and “gotchas”.
💡 Best Practice:
Best practices used in industry will also be highlighted.
⏳ Wait For It:
Sometimes you just need to wait until later in the notes to learn more. :)
Code Conventions
All source code in the notes will be syntax highlighted like so:
const ghostQuota = 37;
const ghostsCaught = 12;
if (ghostsCaught > ghostQuota) {
console.log("You are done for the day.");
} else {
const ghostsRequired = ghostQuota - ghostsCaught;
console.log(`You need to find ${ghostsRequired} more ghosts.`);
}