Git(hub) helpers and project practices
Credits to: Valu Digital Esa-Matti Suuronen
Keep your git repo clean. Keep your secrets outside of git.
Descriptive function and variable names make code easier to read and understand.
const p = "Erkki Esimerkki";
const a = 179;
const b = 82;
const c = b / Math.pow(a, 2);
console.log(p + " bmi = " + c);
// vs.
const person = "Erkki Esimerkki";
const height = 179;
const weight = 82;
const bmi = weight / Math.pow(height, 2);
console.log(`${person} bmi = ${bmi}`);
Good comment does not explain what is being done, but why something is done.
// weight divided by height squared
weight / Math.pow(height, 2);
// vs.
// body mass index formula
weight / Math.pow(height, 2);
Code formatting tool docs
Installing it to project and enabling format on save makes writing standardized code effortless.
Test suite docs
Git(hub) helpers/shortcuts to speed up your workflow
Some examples in src/scripts/*
Like strongly typed javascript. Makes writing maintainable code easier.