Clean Code Principles
Write code that humans can understand. Code is read far more often than it's written.
Naming
Variables
// BAD
const d = 86400000; // what is this?
const yyyymmdd = formatDate(date);
const list = getUsers();
// GOOD
const MILLISECONDS_PER_DAY = 86400000;
const formattedDate = formatDate(date);
const users = getUsers();
Functions
// BAD - unclear what it does
function handle(data) { }
function process(item) { }
function doIt()
[Description truncada. Veja o README completo no GitHub.]