20 Oct 2019
set.add('1');
set.add('1');
API’s GET, PUT and DELETE should be idempotent
ephemeral: temporary
predicate: a function that returns a boolean
function isPhoneNumber(str) {
...
return true;
...
return false;
}
memoization: caching the return value of a function
serialization: converting an object to a more generic format (eg. JSON) so that it can be used somewhere else, eg. JavaScript object → JSON → Python object